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
CustomerData
SectionConfigConverter.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Customer\CustomerData
;
7
8
class
SectionConfigConverter
implements
\Magento\Framework\Config\ConverterInterface
9
{
13
const
INVALIDATE_ALL_SECTIONS_MARKER
=
'*'
;
14
18
public
function
convert
(
$source
)
19
{
20
$sections = [];
21
foreach
(
$source
->getElementsByTagName(
'action'
) as $action) {
22
$actionName = strtolower($action->getAttribute(
'name'
));
23
foreach
($action->getElementsByTagName(
'section'
) as $section) {
24
$sections[$actionName][] = strtolower($section->getAttribute(
'name'
));
25
}
26
if
(!isset($sections[$actionName])) {
27
$sections[$actionName] =
self::INVALIDATE_ALL_SECTIONS_MARKER
;
28
}
29
}
30
return
[
31
'sections'
=> $sections,
32
];
33
}
34
}
Magento\Customer\CustomerData\SectionConfigConverter\convert
convert($source)
Definition:
SectionConfigConverter.php:18
Magento\Customer\CustomerData\SectionConfigConverter\INVALIDATE_ALL_SECTIONS_MARKER
const INVALIDATE_ALL_SECTIONS_MARKER
Definition:
SectionConfigConverter.php:13
Magento\Customer\CustomerData
Definition:
Customer.php:7
$source
$source
Definition:
source.php:23
Magento\Customer\CustomerData\SectionConfigConverter
Definition:
SectionConfigConverter.php:8
Magento\Framework\Config\ConverterInterface
Definition:
ConverterInterface.php:14