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
ConverterType.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Ui\Config\Argument\Parser
;
7
8
use
Magento\Ui\Config\Argument\ParserInterface
;
9
use
Magento\Ui\Config\ConverterInterface
;
10
14
class
ConverterType
implements
ParserInterface
15
{
19
private
$converter;
20
24
public
function
__construct
(
ConverterInterface
$converter)
25
{
26
$this->converter = $converter;
27
}
28
33
public
function
parse
(array
$data
, \DOMNode $node)
34
{
35
$result
= [];
36
$domXPath = new \DOMXPath($node->ownerDocument);
37
$nodeList = $domXPath->query(trim(
$data
[
'value'
]), $node);
38
foreach
($nodeList as $itemNode) {
39
$result
= $this->converter->convert($itemNode,
$data
);
40
}
41
42
if
(
$result
&& isset(
$data
[
'name'
])) {
43
$result
= array_merge(
$result
, [
'name'
=>
$data
[
'name'
]]);
44
}
45
46
return
$result
;
47
}
48
}
$result
$result
Definition:
product_configurable_not_available_rollback.php:26
Magento\Ui\Config\Argument\ParserInterface
Definition:
ParserInterface.php:11
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Ui\Config\Argument\Parser
Definition:
ArrayType.php:6
Magento\Ui\Config\Argument\Parser\ConverterType
Definition:
ConverterType.php:14
Magento\Ui\Config\Argument\Parser\ConverterType\parse
parse(array $data, \DOMNode $node)
Definition:
ConverterType.php:33
Magento\Ui\Config\ConverterInterface
Definition:
ConverterInterface.php:11
Magento\Ui\Config\Argument\Parser\ConverterType\__construct
__construct(ConverterInterface $converter)
Definition:
ConverterType.php:24