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 5
5
*/
6
6
7
7
/** @var \Magento\Customer\Block\CustomerData $block */
8
+ /** @var \Magento\Framework\Json\Helper\Data $jsonHelper */
9
+ $ jsonHelper = $ block ->getData ('jsonHelper ' );
8
10
9
11
// phpcs:disable Magento2.Templates.ThisInTemplate.FoundHelper
10
12
?>
14
16
"Magento_Customer/js/customer-data": {
15
17
"sectionLoadUrl": "<?= $ block ->escapeJs ($ block ->getCustomerDataUrl ('customer/section/load ' )) ?> ",
16
18
"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 ()) ?> ,
19
20
"cookieLifeTime": "<?= $ block ->escapeJs ($ block ->getCookieLifeTime ()) ?> ",
20
21
"updateSessionUrl": "<?= $ block ->escapeJs (
21
22
$ block ->getCustomerDataUrl ('customer/account/updateSession ' )
You can’t perform that action at this time.
0 commit comments