Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CmsPageConfigReader.php
Go to the documentation of this file.
1 <?php
8 
11 
13 {
17  const XML_PATH_CHANGE_FREQUENCY = 'sitemap/page/changefreq';
18  const XML_PATH_PRIORITY = 'sitemap/page/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,
46  $storeId
47  );
48  }
49 
53  public function getChangeFrequency($storeId)
54  {
55  return (string)$this->scopeConfig->getValue(
56  self::XML_PATH_CHANGE_FREQUENCY,
58  $storeId
59  );
60  }
61 }