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-ui
Config
Argument
Parser
Url.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Ui\Config\Argument\Parser
;
7
8
use
Magento\Framework\Data\Argument\InterpreterInterface
;
9
use
Magento\Framework\UrlInterface
;
10
use
Magento\Framework\UrlFactory
;
11
use
Magento\Framework\View\Layout\Argument\Interpreter\NamedParams
;
12
18
class
Url
implements
InterpreterInterface
19
{
23
private
$urlResolver;
24
28
private
$paramsInterpreter;
29
34
public
function
__construct
(
UrlFactory
$urlResolverFactory,
NamedParams
$paramsInterpreter)
35
{
36
$this->urlResolver = $urlResolverFactory->
create
();
37
$this->paramsInterpreter = $paramsInterpreter;
38
}
39
45
public
function
evaluate
(array
$data
)
46
{
47
if
(!isset(
$data
[
'path'
])) {
48
throw
new \InvalidArgumentException(
'URL path is missing.'
);
49
}
50
$urlPath =
$data
[
'path'
];
51
$urlParams = $this->paramsInterpreter->evaluate(
$data
);
52
return
$this->urlResolver->getUrl($urlPath, $urlParams);
53
}
54
}
Magento\Ui\Config\Argument\Parser\Url\evaluate
evaluate(array $data)
Definition:
Url.php:45
Magento\Ui\Config\Argument\Parser\Url\__construct
__construct(UrlFactory $urlResolverFactory, NamedParams $paramsInterpreter)
Definition:
Url.php:34
Magento\Framework\UrlInterface
Definition:
UrlInterface.php:12
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Framework\UrlFactory\create
create(array $data=[])
Definition:
UrlFactory.php:39
Magento\Framework\UrlFactory
Definition:
UrlFactory.php:9
Magento\Ui\Config\Argument\Parser
Definition:
ArrayType.php:6
Magento\Framework\Data\Argument\InterpreterInterface
Definition:
InterpreterInterface.php:14
Magento\Framework\View\Layout\Argument\Interpreter\NamedParams
Definition:
NamedParams.php:13
Magento\Ui\Config\Argument\Parser\Url
Definition:
Url.php:18