Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Notices.php
Go to the documentation of this file.
1 <?php
7 
15 {
20  public function __construct(\Magento\Framework\View\Element\Template\Context $context, array $data = [])
21  {
22  parent::__construct($context, $data);
23  }
24 
30  public function displayNoscriptNotice()
31  {
32  return $this->_scopeConfig->getValue(
33  'web/browser_capabilities/javascript',
34  \Magento\Store\Model\ScopeInterface::SCOPE_STORE
35  );
36  }
37 
43  public function displayNoLocalStorageNotice()
44  {
45  return $this->_scopeConfig->getValue(
46  'web/browser_capabilities/local_storage',
47  \Magento\Store\Model\ScopeInterface::SCOPE_STORE
48  );
49  }
50 
56  public function displayDemoNotice()
57  {
58  return $this->_scopeConfig->getValue(
59  'design/head/demonotice',
60  \Magento\Store\Model\ScopeInterface::SCOPE_STORE
61  );
62  }
63 }
__construct(\Magento\Framework\View\Element\Template\Context $context, array $data=[])
Definition: Notices.php:20