Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Footer.php
Go to the documentation of this file.
1 <?php
7 
16 {
20  protected $_template = 'Magento_Backend::page/footer.phtml';
21 
26  protected $productMetadata;
27 
33  public function __construct(
34  \Magento\Backend\Block\Template\Context $context,
35  \Magento\Framework\App\ProductMetadataInterface $productMetadata,
36  array $data = []
37  ) {
38  $this->productMetadata = $productMetadata;
39  parent::__construct($context, $data);
40  }
41 
45  protected function _construct()
46  {
47  $this->setShowProfiler(true);
48  }
49 
56  public function getMagentoVersion()
57  {
58  return $this->productMetadata->getVersion();
59  }
60 
64  protected function getCacheLifetime()
65  {
66  return 3600 * 24 * 10;
67  }
68 }