cookie.phtml 662 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. ?>
  7. <?php
  8. /**
  9. * Cookie settings initialization script
  10. *
  11. * @var $block \Magento\Framework\View\Element\Js\Cookie
  12. */
  13. ?>
  14. <script type="text/x-magento-init">
  15. {
  16. "*": {
  17. "mage/cookies": {
  18. "expires": null,
  19. "path": "<?= /* @escapeNotVerified */ $block->getPath() ?>",
  20. "domain": "<?= /* @escapeNotVerified */ $block->getDomain() ?>",
  21. "secure": false,
  22. "lifetime": "<?= /* @escapeNotVerified */ $block->getLifetime() ?>"
  23. }
  24. }
  25. }
  26. </script>