Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
customer-data.phtml
Go to the documentation of this file.
1 <?php
8 ?>
9 <script type="text/x-magento-init">
10 <?= /* @noEscape */ $this->helper(\Magento\Framework\Json\Helper\Data::class)->jsonEncode([
11  '*' => ['Magento_Customer/js/customer-data' => [
12  'sectionLoadUrl' => $block->getCustomerDataUrl('customer/section/load'),
13  'expirableSectionLifetime' => $block->getExpirableSectionLifetime(),
14  'expirableSectionNames' => $block->getExpirableSectionNames(),
15  'cookieLifeTime' => $block->getCookieLifeTime(),
16  'updateSessionUrl' => $block->getCustomerDataUrl('customer/account/updateSession'),
17  ]],
18  ]);
19 ?>
20 </script>
$block
Definition: block.php:8