|
- = $block->escapeHtml(__('Is Default')) ?> |
+ = $escaper->escapeHtml(__('Is Default')) ?> |
- = $block->escapeHtml($_store->getName()) ?>
+ = $escaper->escapeHtml($_store->getName()) ?>
|
@@ -40,9 +43,9 @@ $stores = $block->getStoresSortedBySortOrder();
getReadOnly() && !$block->canManageOptionDefaultOnly()) : ?>
|
@@ -57,7 +60,7 @@ $stores = $block->getStoresSortedBySortOrder();
getReadOnly() && !$block->canManageOptionDefaultOnly()) : ?>
+ title="= $escaper->escapeHtmlAttr(__('Sort Option')) ?>">
getStoresSortedBySortOrder();
= ($storeId == \Magento\Store\Model\Store::DEFAULT_STORE_ID) ? ' required-option required-unique' : '' ?>"
name="swatchtext[value][<%- data.id %>][= /* @noEscape */ $storeId ?>]"
type="text" value="<%- data.swatch= /* @noEscape */ $storeId ?> %>"
- placeholder="= $block->escapeHtmlAttr(__("Swatch")) ?>"/>
+ placeholder="= $escaper->escapeHtmlAttr(__("Swatch")) ?>"/>
getReadOnly() || $block->canManageOptionDefaultOnly()) ? ' disabled="disabled"' : ''?>
- placeholder="= $block->escapeHtmlAttr(__("Description")) ?>"/>
+ placeholder="= $escaper->escapeHtmlAttr(__("Description")) ?>"/>
|
getReadOnly() && !$block->canManageOptionDefaultOnly()) : ?>
-
|
@@ -105,7 +108,7 @@ $stores = $block->getStoresSortedBySortOrder();
"Magento_Swatches/js/text": = /* @noEscape */ $block->getJsonConfig() ?> ,
"Magento_Catalog/catalog/product/attribute/unique-validate": {
"element": "required-text-swatch-unique",
- "message": "= $block->escapeJs($block->escapeHtml(__("The value of Admin must be unique."))) ?>"
+ "message": "= $escaper->escapeJs($escaper->escapeHtml(__("The value of Admin must be unique."))) ?>"
}
}
}
diff --git a/app/code/Magento/Swatches/view/adminhtml/templates/catalog/product/attribute/visual.phtml b/app/code/Magento/Swatches/view/adminhtml/templates/catalog/product/attribute/visual.phtml
index b7b1ab5fc5323..55a94d842cf46 100644
--- a/app/code/Magento/Swatches/view/adminhtml/templates/catalog/product/attribute/visual.phtml
+++ b/app/code/Magento/Swatches/view/adminhtml/templates/catalog/product/attribute/visual.phtml
@@ -4,24 +4,27 @@
* See COPYING.txt for license details.
*/
-/** @var $block \Magento\Swatches\Block\Adminhtml\Attribute\Edit\Options\Visual */
+/**
+ * @var $block \Magento\Swatches\Block\Adminhtml\Attribute\Edit\Options\Visual
+ * @var \Magento\Framework\Escaper $escaper
+ */
$stores = $block->getStoresSortedBySortOrder();
?>