6
6
7
7
/** @var $block \Magento\ConfigurableProduct\Block\Adminhtml\Product\Edit\Tab\Variations\Config\Matrix */
8
8
/** @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer */
9
+ /** @var \Magento\Framework\Escaper $escaper */
9
10
?>
10
11
<?php
11
12
/** @var \Magento\Framework\Json\Helper\Data $jsonHelper */
@@ -29,7 +30,7 @@ $currencySymbol = $block->getCurrencySymbol();
29
30
"<?= /* @noEscape */ $ block ->getData ('config/form ' ) ?> .<?= /* @noEscape */ $ block ->getModal () ?> ": {
30
31
"component": "Magento_ConfigurableProduct/js/components/modal-configurable",
31
32
"options": {"type": "slide",
32
- "title": "<?= $ block ->escapeHtml (__ ('Create Product Configurations ' )) ?> "},
33
+ "title": "<?= $ escaper ->escapeHtml (__ ('Create Product Configurations ' )) ?> "},
33
34
"formName": "<?= /* @noEscape */ $ block ->getForm () ?> ",
34
35
"isTemplate": false,
35
36
"stepWizard": "<?= /* @noEscape */ $ block ->getData ('config/nameStepWizard ' ) ?> ",
@@ -55,8 +56,10 @@ $currencySymbol = $block->getCurrencySymbol();
55
56
?> .configurable_attribute_set_handler_modal",
56
57
"wizardModalButtonName": "<?= /* @noEscape */ $ block ->getForm ()
57
58
?> .configurable.configurable_products_button_set.create_configurable_products_button",
58
- "wizardModalButtonTitle": "<?= $ block ->escapeHtml (__ ('Edit Configurations ' )) ?> ",
59
- "productAttributes":<?= /* @noEscape */ $ jsonHelper ->jsonEncode ($ block ->getProductAttributes ())?> ,
59
+ "wizardModalButtonTitle": "<?= $ escaper ->escapeHtml (__ ('Edit Configurations ' )) ?> ",
60
+ "productAttributes":<?= /* @noEscape */ $ jsonHelper ->jsonEncode (
61
+ $ block ->getProductAttributes ()
62
+ )?> ,
60
63
"productUrl": "<?= /* @noEscape */ $ block ->getUrl ('catalog/product/edit ' , ['id ' => '%id% ' ]) ?> ",
61
64
"variations": <?= /* @noEscape */ $ jsonHelper ->jsonEncode ($ block ->getProductMatrix ()) ?> ,
62
65
"currencySymbol": "<?= /* @noEscape */ $ currencySymbol ?> ",
0 commit comments