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
Model
Widget
RecentlyViewedStorageConfiguration.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Catalog\Model\Widget
;
7
8
use
Magento\Catalog\Model\FrontendStorageConfigurationInterface
;
9
use
Magento\Framework\App\Config\ScopeConfigInterface
;
10
14
class
RecentlyViewedStorageConfiguration
implements
FrontendStorageConfigurationInterface
15
{
17
const
XML_LIFETIME_PATH
=
"catalog/recently_products/recently_viewed_lifetime"
;
18
22
private
$scopeConfig;
23
28
public
function
__construct
(
ScopeConfigInterface
$scopeConfig)
29
{
30
$this->scopeConfig = $scopeConfig;
31
}
32
38
public
function
get
()
39
{
40
return
[
41
'lifetime'
=> $this->scopeConfig->getValue(self::XML_LIFETIME_PATH)
42
];
43
}
44
}
Magento\Catalog\Model\Widget
Definition:
RecentlyComparedStorageConfiguration.php:6
Magento\Catalog\Model\Widget\RecentlyViewedStorageConfiguration\XML_LIFETIME_PATH
const XML_LIFETIME_PATH
Definition:
RecentlyViewedStorageConfiguration.php:17
Magento\Catalog\Model\Widget\RecentlyViewedStorageConfiguration
Definition:
RecentlyViewedStorageConfiguration.php:14
Magento\Catalog\Model\FrontendStorageConfigurationInterface
Definition:
FrontendStorageConfigurationInterface.php:14
Magento\Framework\App\Config\ScopeConfigInterface
Definition:
ScopeConfigInterface.php:15
Magento\Catalog\Model\Widget\RecentlyViewedStorageConfiguration\__construct
__construct(ScopeConfigInterface $scopeConfig)
Definition:
RecentlyViewedStorageConfiguration.php:28