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-store
Model
Config
Processor
Placeholder.php
Go to the documentation of this file.
1
<?php
8
namespace
Magento\Store\Model\Config\Processor
;
9
10
use
Magento\Framework\App\Config\Spi\PostProcessorInterface
;
11
use
Magento\Store\Model\Config\Placeholder
as ConfigPlaceholder;
12
16
class
Placeholder
implements
PostProcessorInterface
17
{
21
private
$configPlaceholder;
22
27
public
function
__construct
(ConfigPlaceholder $configPlaceholder)
28
{
29
$this->configPlaceholder = $configPlaceholder;
30
}
31
35
public
function
process
(array
$data
)
36
{
37
foreach
(
$data
as $scope => &$scopeData) {
38
if
($scope ===
'default'
) {
39
$scopeData = $this->configPlaceholder->process($scopeData);
40
}
else
{
41
foreach
($scopeData as &$sData) {
42
$sData = $this->configPlaceholder->process($sData);
43
}
44
}
45
}
46
47
return
$data
;
48
}
49
}
Magento\Store\Model\Config\Processor\Placeholder
Definition:
Placeholder.php:16
Magento\Store\Model\Config\Placeholder
Definition:
Placeholder.php:11
Magento\Framework\App\Config\Spi\PostProcessorInterface
Definition:
PostProcessorInterface.php:18
Magento\Store\Model\Config\Processor\Placeholder\__construct
__construct(ConfigPlaceholder $configPlaceholder)
Definition:
Placeholder.php:27
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Store\Model\Config\Processor
Definition:
Fallback.php:6
Magento\Store\Model\Config\Processor\Placeholder\process
process(array $data)
Definition:
Placeholder.php:35