Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ConverterUtils.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Ui\Config;
7 
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) {
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 }
elseif(isset( $params[ 'redirect_parent']))
Definition: iframe.phtml:17