invalidation-rules.phtml 726 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. // @codingStandardsIgnoreFile
  7. /* @var $block \Magento\Customer\Block\CustomerScopeData */
  8. ?>
  9. <script type="text/x-magento-init">
  10. <?= /* @noEscape */ $block->encodeConfiguration([
  11. '*' => ['Magento_Customer/js/invalidation-processor' => [
  12. 'invalidationRules' => [
  13. 'website-rule' => [
  14. 'Magento_Customer/js/invalidation-rules/website-rule' => [
  15. 'scopeConfig' => [
  16. 'websiteId' => $block->getWebsiteId(),
  17. ]
  18. ]
  19. ]
  20. ]
  21. ]],
  22. ]);
  23. ?>
  24. </script>