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
Config
Scope
Converter.php
Go to the documentation of this file.
1
<?php
8
namespace
Magento\Framework\App\Config\Scope
;
9
10
class
Converter
implements
\Magento\Framework\Config\ConverterInterface
11
{
18
public
function
convert
(
$source
)
19
{
20
$output
= [];
21
foreach
(
$source
as $key =>
$value
) {
22
$this->
_setArrayValue
(
$output
, $key,
$value
);
23
}
24
return
$output
;
25
}
26
35
protected
function
_setArrayValue
(array &$container,
$path
,
$value
)
36
{
37
$segments = explode(
'/'
,
$path
);
38
$currentPointer = & $container;
39
foreach
($segments as $segment) {
40
if
(!isset($currentPointer[$segment])) {
41
$currentPointer[$segment] = [];
42
}
43
$currentPointer = & $currentPointer[$segment];
44
}
45
$currentPointer =
$value
;
46
}
47
}
Magento\Framework\App\Config\Scope\Converter\convert
convert($source)
Definition:
Converter.php:18
$source
$source
Definition:
source.php:23
$value
$value
Definition:
gender.phtml:16
Magento\Framework\App\Config\Scope
Definition:
Converter.php:8
$output
$output
Definition:
classmap_generator.php:100
Magento\Framework\App\Config\Scope\Converter
Definition:
Converter.php:10
Magento\Framework\App\Config\Scope\Converter\_setArrayValue
_setArrayValue(array &$container, $path, $value)
Definition:
Converter.php:35
Magento\Framework\Config\ConverterInterface
Definition:
ConverterInterface.php:14
$path
$path
Definition:
import_with_filesystem_images.php:14