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-backend
Block
Page
Footer.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Backend\Block\Page
;
7
15
class
Footer
extends
\Magento\Backend\Block\Template
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
}
Magento\Framework\App
Magento\Backend\Block\Template
Definition:
Template.php:33
Magento\Backend\Block\Context
Definition:
Context.php:23
Magento\Backend\Block\Page\Footer
Definition:
Footer.php:15
Magento\Backend\Block\Page\Footer\__construct
__construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\App\ProductMetadataInterface $productMetadata, array $data=[])
Definition:
Footer.php:33
Magento\Backend\Block\Page\Footer\$_template
$_template
Definition:
Footer.php:20
Magento\Backend\Block\Page\Footer\getCacheLifetime
getCacheLifetime()
Definition:
Footer.php:64
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento
Magento\Backend\Block\Page\Footer\$productMetadata
$productMetadata
Definition:
Footer.php:26
Magento\Backend\Block\Page\Footer\getMagentoVersion
getMagentoVersion()
Definition:
Footer.php:56
Magento\Backend\Block\Page
Definition:
FooterTest.php:6
Magento\Backend\Block\Page\Footer\_construct
_construct()
Definition:
Footer.php:45