Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-url-rewrite
Model
Exception
UrlAlreadyExistsException.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\UrlRewrite\Model\Exception
;
7
8
use
Magento\Framework\Phrase
;
9
16
class
UrlAlreadyExistsException
extends
\Magento\Framework\Exception\AlreadyExistsException
17
{
21
private
$urls = [];
22
29
public
function
__construct
(
Phrase
$phrase
=
null
, \Exception $cause =
null
,
$code
= 0, array $urls = [])
30
{
31
$this->urls = $urls;
32
if
(
$phrase
===
null
) {
33
$phrase
=
__
(
'URL key for specified store already exists'
);
34
}
35
parent::__construct(
$phrase
, $cause,
$code
);
36
}
37
44
public
function
getUrls
()
45
{
46
return
$this->urls;
47
}
48
}
Magento\Framework\Exception\LocalizedException\$phrase
$phrase
Definition:
LocalizedException.php:22
Magento\UrlRewrite\Model\Exception\UrlAlreadyExistsException\getUrls
getUrls()
Definition:
UrlAlreadyExistsException.php:44
Magento\UrlRewrite\Model\Exception\UrlAlreadyExistsException\__construct
__construct(Phrase $phrase=null, \Exception $cause=null, $code=0, array $urls=[])
Definition:
UrlAlreadyExistsException.php:29
__
__()
Definition:
__.php:13
Magento\Framework\Exception\AlreadyExistsException
Definition:
AlreadyExistsException.php:14
Magento\UrlRewrite\Model\Exception\UrlAlreadyExistsException
Definition:
UrlAlreadyExistsException.php:16
Magento\Framework\Phrase
Definition:
Phrase.php:17
Magento\Framework\Phrase
$code
$code
Definition:
info.phtml:12
Magento\UrlRewrite\Model\Exception
Definition:
UrlAlreadyExistsException.php:6