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
Converter
HtmlContent.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Ui\Config\Converter
;
7
8
use
Magento\Framework\View\Element\UiComponent\Config\Converter
;
9
use
Magento\Ui\Config\ConverterInterface
;
10
14
class
HtmlContent
implements
ConverterInterface
15
{
19
public
function
convert
(\DOMNode $node, array
$data
)
20
{
21
$items
= [];
23
if
($node->nodeType == XML_ELEMENT_NODE) {
24
$xml =
'<?xml version="1.0"?>'
.
"\n"
25
.
'<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">'
.
"\n"
26
. $node->ownerDocument->saveXML($node) .
"\n"
27
.
'</layout>'
;
28
$items
[
'layout'
][
'xsi:type'
] =
'string'
;
29
$items
[
'layout'
][
'name'
] =
'layout'
;
30
$items
[
'layout'
][
'value'
] = $xml;
31
32
$items
[
'name'
][
'xsi:type'
] =
'string'
;
33
$items
[
'name'
][
'name'
] =
'block'
;
34
$items
[
'name'
][
'value'
] = $node->getAttribute(
'name'
);
35
}
36
return
[
37
'xsi:type'
=>
'array'
,
38
'item'
=>
$items
39
];
40
}
41
}
Magento\Ui\Config\Converter
Definition:
Actions.php:6
Magento\Framework\View\Element\UiComponent\Config\Converter
Definition:
Converter.php:14
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Ui\Config\Converter\HtmlContent
Definition:
HtmlContent.php:14
Magento\Ui\Config\ConverterInterface
Definition:
ConverterInterface.php:11
Magento\Ui\Config\ConverterInterface\convert
convert(\DOMNode $node, array $data)
$items
$items
Definition:
order_rollback.php:21