Notices.php 975 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. /**
  7. * Adminhtml header notices block
  8. *
  9. * @author Magento Core Team <core@magentocommerce.com>
  10. */
  11. namespace Magento\Backend\Block\Page;
  12. /**
  13. * @api
  14. * @since 100.0.2
  15. */
  16. class Notices extends \Magento\Backend\Block\Template
  17. {
  18. /**
  19. * Check if noscript notice should be displayed
  20. *
  21. * @return boolean
  22. */
  23. public function displayNoscriptNotice()
  24. {
  25. return $this->_scopeConfig->getValue(
  26. 'web/browser_capabilities/javascript',
  27. \Magento\Store\Model\ScopeInterface::SCOPE_STORE
  28. );
  29. }
  30. /**
  31. * Check if demo store notice should be displayed
  32. *
  33. * @return boolean
  34. */
  35. public function displayDemoNotice()
  36. {
  37. return $this->_scopeConfig->getValue(
  38. 'design/head/demonotice',
  39. \Magento\Store\Model\ScopeInterface::SCOPE_STORE
  40. );
  41. }
  42. }