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-search
Block
SearchTermsLog.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\CatalogSearch\Block
;
7
8
use
Magento\Framework\App\ResponseInterface
;
9
use
Magento\Framework\View\Element\Block\ArgumentInterface
;
10
14
class
SearchTermsLog
implements
ArgumentInterface
15
{
19
private
$response;
20
24
public
function
__construct
(
25
ResponseInterface
$response
26
) {
27
$this->response =
$response
;
28
}
29
35
public
function
isPageCacheable
()
36
{
37
$pragma = $this->response->getHeader(
'pragma'
)->getFieldValue();
38
return
($pragma ==
'cache'
);
39
}
40
}
Magento\CatalogSearch\Block\SearchTermsLog
Definition:
SearchTermsLog.php:14
$response
$response
Definition:
404.php:11
Magento\Framework\View\Element\Block\ArgumentInterface
Definition:
ArgumentInterface.php:15
Magento\CatalogSearch\Block\SearchTermsLog\isPageCacheable
isPageCacheable()
Definition:
SearchTermsLog.php:35
Magento\CatalogSearch\Block\SearchTermsLog\__construct
__construct(ResponseInterface $response)
Definition:
SearchTermsLog.php:24
Magento\Framework\App\ResponseInterface
Definition:
ResponseInterface.php:14
Magento\CatalogSearch\Block