- /**
- * @var \Magento\Customer\Block\CustomerData $block
- */
- ?>
- <script type="text/x-magento-init">
- <?php
- /* @escapeNotVerified */ echo $this->helper('Magento\Framework\Json\Helper\Data')->jsonEncode([
- '*' => ['Magento_Customer/js/customer-data' => [
- 'sectionLoadUrl' => $block->getCustomerDataUrl('customer/section/load'),
- 'cookieLifeTime' => $block->getCookieLifeTime(),
- ]],
- ]);
- ?>
- </script>