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
ConfigSourceAggregated.php
Go to the documentation of this file.
1
<?php
8
namespace
Magento\Framework\App\Config
;
9
10
class
ConfigSourceAggregated
implements
ConfigSourceInterface
11
{
15
private
$sources;
16
22
public
function
__construct
(array $sources = [])
23
{
24
$this->sources = $sources;
25
}
26
33
public
function
get
(
$path
=
''
)
34
{
35
$this->sortSources();
36
$data
= [];
37
foreach
($this->sources as $sourceConfig) {
39
$source
= $sourceConfig[
'source'
];
40
$configData
=
$source
->get(
$path
);
41
if
(!is_array(
$configData
)) {
42
$data
=
$configData
;
43
}
elseif
(!empty(
$configData
)) {
44
$data
= array_replace_recursive(is_array(
$data
) ?
$data
: [],
$configData
);
45
}
46
}
47
return
$data
;
48
}
49
55
private
function
sortSources()
56
{
57
uasort($this->sources,
function
($firstItem, $secondItem) {
58
return
$firstItem[
'sortOrder'
] > $secondItem[
'sortOrder'
];
59
});
60
}
61
}
Magento\Framework\App\Config
Definition:
Base.php:9
elseif
elseif(isset( $params[ 'redirect_parent']))
Definition:
iframe.phtml:17
Magento\Framework\App\Config\ConfigSourceAggregated
Definition:
ConfigSourceAggregated.php:10
Magento\Framework\App\Config\ConfigSourceInterface
Definition:
ConfigSourceInterface.php:13
$source
$source
Definition:
source.php:23
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
$configData
$configData
Definition:
payment_configuration.php:26
Magento\Framework\App\Config\ConfigSourceAggregated\__construct
__construct(array $sources=[])
Definition:
ConfigSourceAggregated.php:22
$path
$path
Definition:
import_with_filesystem_images.php:14