Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
section-config.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/section-config' => [
12  'sections' => $block->getSections(),
13  'clientSideSections' => $block->getClientSideSections(),
14  'baseUrls' => array_unique([
15  $block->getUrl(null, ['_secure' => true]),
16  $block->getUrl(null, ['_secure' => false]),
17  ]),
18  ]],
19  ]);
20 ?>
21 </script>
$block
Definition: block.php:8