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
App
ResourceConnection
Config
Converter.php
Go to the documentation of this file.
1
<?php
8
namespace
Magento\Framework\App\ResourceConnection\Config
;
9
10
class
Converter
implements
\Magento\Framework\Config\ConverterInterface
11
{
19
public
function
convert
(
$source
)
20
{
21
$output
= [];
23
$resources =
$source
->getElementsByTagName(
'resource'
);
25
foreach
($resources as $resourceConfig) {
26
$resourceName = $resourceConfig->attributes->getNamedItem(
'name'
)->nodeValue;
27
$resourceData = [];
28
foreach
($resourceConfig->attributes as
$attribute
) {
29
$resourceData[
$attribute
->nodeName] =
$attribute
->nodeValue;
30
}
31
$output
[$resourceName] = $resourceData;
32
}
33
return
$output
;
34
}
35
}
$attribute
$attribute
Definition:
attribute_set_with_image_attribute.php:41
$source
$source
Definition:
source.php:23
Magento\Framework\Config\ConverterInterface\convert
convert($source)
Magento\Framework\App\ResourceConnection\Config\Converter
Definition:
Converter.php:10
$output
$output
Definition:
classmap_generator.php:100
Magento\Framework\App\ResourceConnection\Config
Definition:
Converter.php:8
Magento\Framework\Config\ConverterInterface
Definition:
ConverterInterface.php:14