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-sitemap
Model
ItemProvider
ProductConfigReader.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Sitemap\Model\ItemProvider
;
8
9
use
Magento\Framework\App\Config\ScopeConfigInterface
;
10
use
Magento\Store\Model\ScopeInterface
;
11
12
class
ProductConfigReader
implements
ConfigReaderInterface
13
{
17
const
XML_PATH_CHANGE_FREQUENCY
=
'sitemap/product/changefreq'
;
18
const
XML_PATH_PRIORITY
=
'sitemap/product/priority'
;
26
private
$scopeConfig;
27
33
public
function
__construct
(
ScopeConfigInterface
$scopeConfig)
34
{
35
$this->scopeConfig = $scopeConfig;
36
}
37
41
public
function
getPriority
(
$storeId
)
42
{
43
return
(
string
)$this->scopeConfig->getValue(
44
self::XML_PATH_PRIORITY,
45
ScopeInterface::SCOPE_STORE
,
46
$storeId
47
);
48
}
49
53
public
function
getChangeFrequency
(
$storeId
)
54
{
55
return
(
string
)$this->scopeConfig->getValue(
56
self::XML_PATH_CHANGE_FREQUENCY,
57
ScopeInterface::SCOPE_STORE
,
58
$storeId
59
);
60
}
61
}
Magento\Store\Model\ScopeInterface\SCOPE_STORE
const SCOPE_STORE
Definition:
ScopeInterface.php:21
$storeId
$storeId
Definition:
customer_review_with_rating.php:14
Magento\Sitemap\Model\ItemProvider\ProductConfigReader\__construct
__construct(ScopeConfigInterface $scopeConfig)
Definition:
ProductConfigReader.php:33
Magento\Sitemap\Model\ItemProvider
Definition:
CategoryConfigReaderTest.php:7
Magento\Sitemap\Model\ItemProvider\ProductConfigReader\getChangeFrequency
getChangeFrequency($storeId)
Definition:
ProductConfigReader.php:53
Magento\Sitemap\Model\ItemProvider\ProductConfigReader\getPriority
getPriority($storeId)
Definition:
ProductConfigReader.php:41
Magento\Store\Model\ScopeInterface
Definition:
ScopeInterface.php:12
Magento\Sitemap\Model\ItemProvider\ConfigReaderInterface
Definition:
ConfigReaderInterface.php:14
Magento\Sitemap\Model\ItemProvider\ProductConfigReader
Definition:
ProductConfigReader.php:12
Magento\Sitemap\Model\ItemProvider\ProductConfigReader\XML_PATH_CHANGE_FREQUENCY
const XML_PATH_CHANGE_FREQUENCY
Definition:
ProductConfigReader.php:17
Magento\Sitemap\Model\ItemProvider\ProductConfigReader\XML_PATH_PRIORITY
const XML_PATH_PRIORITY
Definition:
ProductConfigReader.php:18
Magento\Framework\App\Config\ScopeConfigInterface
Definition:
ScopeConfigInterface.php:15