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-page-cache
Model
App
CacheIdentifierPlugin.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\PageCache\Model\App
;
8
13
class
CacheIdentifierPlugin
14
{
22
public
function
__construct
(
23
\
Magento
\Framework\View\DesignExceptions $designExceptions,
24
\
Magento
\Framework\
App
\RequestInterface
$request
,
25
\
Magento
\PageCache\Model\
Config
$config
26
) {
27
$this->designExceptions = $designExceptions;
28
$this->request =
$request
;
29
$this->config =
$config
;
30
}
31
40
public
function
afterGetValue
(\
Magento
\Framework\
App
\PageCache\Identifier $identifier,
$result
)
41
{
42
if
($this->config->getType() ==
\Magento\PageCache\Model\Config::BUILT_IN
&& $this->config->isEnabled()) {
43
$ruleDesignException = $this->designExceptions->getThemeByRequest($this->request);
44
if
($ruleDesignException !==
false
) {
45
return
$ruleDesignException .
$result
;
46
}
47
}
48
return
$result
;
49
}
50
}
$result
$result
Definition:
product_configurable_not_available_rollback.php:26
Magento\Framework\App
$config
$config
Definition:
fraud_order.php:17
Magento\PageCache\Model\App\CacheIdentifierPlugin
Definition:
CacheIdentifierPlugin.php:13
Magento\PageCache\Model\Config
Definition:
Config.php:21
Magento\PageCache\Model\App\CacheIdentifierPlugin\afterGetValue
afterGetValue(\Magento\Framework\App\PageCache\Identifier $identifier, $result)
Definition:
CacheIdentifierPlugin.php:40
Magento
$request
$request
Definition:
quote_with_configurable_product_last_variation.php:22
Magento\PageCache\Model\App\CacheIdentifierPlugin\__construct
__construct(\Magento\Framework\View\DesignExceptions $designExceptions, \Magento\Framework\App\RequestInterface $request, \Magento\PageCache\Model\Config $config)
Definition:
CacheIdentifierPlugin.php:22
Magento\PageCache\Model\App
Definition:
CacheIdentifierPlugin.php:7
Magento\PageCache\Model\Config\BUILT_IN
const BUILT_IN
Definition:
Config.php:26