Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
SearchTermsLog.php
Go to the documentation of this file.
1 <?php
7 
10 
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 }
$response
Definition: 404.php:11
__construct(ResponseInterface $response)