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-catalog
Model
Layout
DepersonalizePlugin.php
Go to the documentation of this file.
1
<?php
8
namespace
Magento\Catalog\Model\Layout
;
9
10
use
Magento\PageCache\Model\DepersonalizeChecker
;
11
15
class
DepersonalizePlugin
16
{
20
protected
$depersonalizeChecker
;
21
27
protected
$catalogSession
;
28
33
public
function
__construct
(
34
DepersonalizeChecker
$depersonalizeChecker
,
35
\
Magento
\Catalog\Model\
Session
$catalogSession
36
) {
37
$this->catalogSession =
$catalogSession
;
38
$this->depersonalizeChecker =
$depersonalizeChecker
;
39
}
40
48
public
function
afterGenerateXml
(\
Magento
\Framework\View\LayoutInterface $subject,
$result
)
49
{
50
if
($this->depersonalizeChecker->checkIfDepersonalize($subject)) {
51
$this->catalogSession->clearStorage();
52
}
53
return
$result
;
54
}
55
}
$result
$result
Definition:
product_configurable_not_available_rollback.php:26
Magento\Catalog\Model\Layout\DepersonalizePlugin
Definition:
DepersonalizePlugin.php:15
Magento\Catalog\Model\Layout\DepersonalizePlugin\afterGenerateXml
afterGenerateXml(\Magento\Framework\View\LayoutInterface $subject, $result)
Definition:
DepersonalizePlugin.php:48
Magento\Catalog\Model\Session
Definition:
Session.php:14
Magento\Catalog\Model\Layout\DepersonalizePlugin\$depersonalizeChecker
$depersonalizeChecker
Definition:
DepersonalizePlugin.php:20
Magento\Catalog\Model\Layout\DepersonalizePlugin\$catalogSession
$catalogSession
Definition:
DepersonalizePlugin.php:27
Magento\PageCache\Model\DepersonalizeChecker
Definition:
DepersonalizeChecker.php:11
Magento
Magento\Catalog\Model\Layout
Definition:
DepersonalizePlugin.php:8
Magento\Catalog\Model\Layout\DepersonalizePlugin\__construct
__construct(DepersonalizeChecker $depersonalizeChecker, \Magento\Catalog\Model\Session $catalogSession)
Definition:
DepersonalizePlugin.php:33