You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 lines
1.1 KiB

  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. /** @var \Magento\Customer\Block\SectionConfig $block */
  7. ?>
  8. <script type="text/x-magento-init">
  9. {
  10. "*": {
  11. "Magento_Customer/js/section-config": {
  12. "sections": <?= /* @noEscape */ $this->helper(\Magento\Framework\Json\Helper\Data::class)->jsonEncode($block->getSections()) ?>,
  13. "clientSideSections": <?= /* @noEscape */ $this->helper(\Magento\Framework\Json\Helper\Data::class)->jsonEncode($block->getClientSideSections()) ?>,
  14. "baseUrls": <?= /* @noEscape */ $this->helper(\Magento\Framework\Json\Helper\Data::class)->jsonEncode(array_unique([
  15. $block->getUrl(null, ['_secure' => true]),
  16. $block->getUrl(null, ['_secure' => false]),
  17. ])) ?>,
  18. "sectionNames": <?= /* @noEscape */ $this->helper(\Magento\Framework\Json\Helper\Data::class)
  19. ->jsonEncode($block->getData('sectionNamesProvider')->getSectionNames()) ?>
  20. }
  21. }
  22. }
  23. </script>