Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
invalidation-rules.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 /* @var $block \Magento\Customer\Block\CustomerScopeData */
9 ?>
10 <script type="text/x-magento-init">
11 <?= /* @noEscape */ $block->encodeConfiguration([
12  '*' => ['Magento_Customer/js/invalidation-processor' => [
13  'invalidationRules' => [
14  'website-rule' => [
15  'Magento_Customer/js/invalidation-rules/website-rule' => [
16  'scopeConfig' => [
17  'websiteId' => $block->getWebsiteId(),
18  ]
19  ]
20  ]
21  ]
22  ]],
23  ]);
24 ?>
25 </script>
$block
Definition: block.php:8