File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
app/code/Magento/Customer/view/frontend/templates/js Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 55 */
66
77/** @var \Magento\Customer\Block\CustomerData $block */
8+ /** @var \Magento\Framework\Json\Helper\Data $jsonHelper */
9+ $ jsonHelper = $ block ->getData ('jsonHelper ' );
810
911// phpcs:disable Magento2.Templates.ThisInTemplate.FoundHelper
1012?>
1416 "Magento_Customer/js/customer-data": {
1517 "sectionLoadUrl": "<?= $ block ->escapeJs ($ block ->getCustomerDataUrl ('customer/section/load ' )) ?> ",
1618 "expirableSectionLifetime": <?= (int )$ block ->getExpirableSectionLifetime () ?> ,
17- "expirableSectionNames": <?= /* @noEscape */ $ this ->helper (\Magento \Framework \Json \Helper \Data::class)
18- ->jsonEncode ($ block ->getExpirableSectionNames ()) ?> ,
19+ "expirableSectionNames": <?= /* @noEscape */ $ jsonHelper ->jsonEncode ($ block ->getExpirableSectionNames ()) ?> ,
1920 "cookieLifeTime": "<?= $ block ->escapeJs ($ block ->getCookieLifeTime ()) ?> ",
2021 "updateSessionUrl": "<?= $ block ->escapeJs (
2122 $ block ->getCustomerDataUrl ('customer/account/updateSession ' )
You can’t perform that action at this time.
0 commit comments