Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
GetUtilityPageIdentifiers.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Cms\Model;
7 
11 
16 {
20  private $scopeConfig;
21 
26  public function __construct(
27  ScopeConfigInterface $scopeConfig
28  ) {
29  $this->scopeConfig = $scopeConfig;
30  }
31 
37  public function execute()
38  {
39  $homePageIdentifier = $this->scopeConfig->getValue(
40  'web/default/cms_home_page',
42  );
43  $noRouteIdentifier = $this->scopeConfig->getValue(
44  'web/default/cms_no_route',
46  );
47 
48  $noCookieIdentifier = $this->scopeConfig->getValue(
49  'web/default/cms_no_cookies',
51  );
52 
53  return [$homePageIdentifier, $noRouteIdentifier, $noCookieIdentifier];
54  }
55 }
__construct(ScopeConfigInterface $scopeConfig)