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
ConverterUtils.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Ui\Config
;
7
11
class
ConverterUtils
12
{
19
public
function
getComponentName
(\DOMNode $node)
20
{
21
$result
= $node->localName;
22
if
(!$node->hasAttributes()) {
23
return
$result
;
24
}
25
foreach
($node->attributes as
$attribute
) {
26
if
(
$attribute
->name ==
Converter::NAME_ATTRIBUTE_KEY
) {
27
$result
=
$attribute
->value;
28
break
;
29
}
30
}
31
32
return
$result
;
33
}
34
43
public
function
isUiComponent
(\DOMNode $node)
44
{
45
if
(in_array($node->localName, [Converter::SETTINGS_KEY,
'formElements'
])) {
46
return
false
;
47
}
elseif
($node->parentNode !==
null
) {
48
return
$this->
isUiComponent
($node->parentNode);
49
}
50
51
return
true
;
52
}
53
}
$result
$result
Definition:
product_configurable_not_available_rollback.php:26
Magento\Ui\Config
Definition:
ConverterTest.php:6
elseif
elseif(isset( $params[ 'redirect_parent']))
Definition:
iframe.phtml:17
Magento\Ui\Config\ConverterUtils
Definition:
ConverterUtils.php:11
$attribute
$attribute
Definition:
attribute_set_with_image_attribute.php:41
Magento\Framework\View\Element\UiComponent\Config\Converter\NAME_ATTRIBUTE_KEY
const NAME_ATTRIBUTE_KEY
Definition:
Converter.php:34
Magento\Ui\Config\ConverterUtils\getComponentName
getComponentName(\DOMNode $node)
Definition:
ConverterUtils.php:19
Magento\Ui\Config\ConverterUtils\isUiComponent
isUiComponent(\DOMNode $node)
Definition:
ConverterUtils.php:43