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
Config
Dom
NodeMergingConfig.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Config\Dom
;
7
11
class
NodeMergingConfig
12
{
16
private
$nodePathMatcher;
17
23
private
$idAttributes = [];
24
29
public
function
__construct
(
NodePathMatcher
$nodePathMatcher, array $idAttributes)
30
{
31
$this->nodePathMatcher = $nodePathMatcher;
32
$this->idAttributes = $idAttributes;
33
}
34
41
public
function
getIdAttribute
($nodeXpath)
42
{
43
foreach
($this->idAttributes as
$pathPattern
=> $idAttribute) {
44
if
($this->nodePathMatcher->match(
$pathPattern
, $nodeXpath)) {
45
return
$idAttribute;
46
}
47
}
48
return
null
;
49
}
50
}
Magento\Framework\Config\Dom\NodeMergingConfig\__construct
__construct(NodePathMatcher $nodePathMatcher, array $idAttributes)
Definition:
NodeMergingConfig.php:29
$pathPattern
$pathPattern
Definition:
deployTestModules.php:33
Magento\Framework\Config\Dom
Definition:
ArrayNodeConfig.php:6
Magento\Framework\Config\Dom\NodeMergingConfig
Definition:
NodeMergingConfig.php:11
Magento\Framework\Config\Dom\NodePathMatcher
Definition:
NodePathMatcher.php:11
Magento\Framework\Config\Dom\NodeMergingConfig\getIdAttribute
getIdAttribute($nodeXpath)
Definition:
NodeMergingConfig.php:41