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-customer
Model
Address
Config
Converter.php
Go to the documentation of this file.
1
<?php
8
namespace
Magento\Customer\Model\Address\Config
;
9
10
class
Converter
implements
\Magento\Framework\Config\ConverterInterface
11
{
18
public
function
convert
(
$source
)
19
{
20
$output
= [];
22
$formats =
$source
->getElementsByTagName(
'format'
);
24
foreach
($formats as $formatConfig) {
25
$formatCode = $formatConfig->attributes->getNamedItem(
'code'
)->nodeValue;
26
$output
[$formatCode] = [];
27
for
($attributeIndex = 0; $attributeIndex < $formatConfig->attributes->length; $attributeIndex++) {
28
$output
[$formatCode][$formatConfig->attributes->item(
29
$attributeIndex
30
)->nodeName] = $formatConfig->attributes->item(
31
$attributeIndex
32
)->nodeValue;
33
}
34
}
35
return
$output
;
36
}
37
}
$source
$source
Definition:
source.php:23
Magento\Framework\Config\ConverterInterface\convert
convert($source)
$output
$output
Definition:
classmap_generator.php:100
Magento\Customer\Model\Address\Config
Definition:
Converter.php:8
Magento\Customer\Model\Address\Config\Converter
Definition:
Converter.php:10
Magento\Framework\Config\ConverterInterface
Definition:
ConverterInterface.php:14