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
framework
View
Layout
Argument
Parser.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\View\Layout\Argument
;
7
8
use
Magento\Framework\Config\Converter\Dom\Flat
as FlatConverter;
9
use
Magento\Framework\Config\Dom\ArrayNodeConfig
;
10
use
Magento\Framework\Config\Dom\NodePathMatcher
;
11
15
class
Parser
16
{
20
private
$converter;
21
28
public
function
parse
(\DOMNode $argumentNode)
29
{
30
// Base path is specified to use more meaningful XPaths in config
31
return
$this->
getConverter
()->convert($argumentNode,
'argument'
);
32
}
33
39
protected
function
getConverter
()
40
{
41
if
(!$this->converter) {
42
$arrayNodeConfig =
new
ArrayNodeConfig
(
43
new
NodePathMatcher
(),
44
[
45
'argument/param'
=>
'name'
,
46
'argument(/item)+'
=>
'name'
,
47
'argument(/item)+/param'
=>
'name'
,
48
'argument(/argument)+'
=>
'name'
,
49
'argument((/argument)+(/item)+)+'
=>
'name'
,
50
'argument((/argument)+(/item)+)+/param'
=>
'name'
51
],
52
[
'argument/updater'
]
53
);
54
$this->converter =
new
FlatConverter($arrayNodeConfig);
55
}
56
return
$this->converter;
57
}
58
}
Magento\Setup\Module\I18n\Parser
Magento\Framework\View\Layout\Argument\Parser\parse
parse(\DOMNode $argumentNode)
Definition:
Parser.php:28
Magento\Framework\View\Layout\Argument
Magento\Framework\Config\Dom\ArrayNodeConfig
Definition:
ArrayNodeConfig.php:11
Magento\Framework\Config\Converter\Dom\Flat
Definition:
Flat.php:16
Magento\Framework\Config\Dom\NodePathMatcher
Definition:
NodePathMatcher.php:11
Magento\Framework\View\Layout\Argument\Parser\getConverter
getConverter()
Definition:
Parser.php:39