Add layout folder of you module file
[Vendor]/[ModuleName]/view/adminhtml/layout/catalog_product_options.xml
<?xml version="1.0"?>
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/layout_generic.xsd">
<referenceBlock name="admin.product.options">
<arguments>
<argument name="template" xsd:type="string">[Vendor]/[ModuleName]::product_options.phtml</argument>
</arguments>
</referenceBlock>
</layout>
Also need add to module xml this line, to load you layouts after catalog
<sequence>
<module name="Magento_Catalog"/>
</sequence>
Use this:
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="product.info.media.image">
<action method="setTemplate">
<argument name="template" xsi:type="string">Namespace_Customtab::product/view/gallery.phtml</argument>
</action>
</referenceBlock>
</body>
</page>
Best Answer
This tag is used by static tests. Any potentially unsafe output must be marked with either
@escapeNotVerified
or@noEscape
to pass tests, the latter means that this particular usage has been checked and is safe.In the future releases all occurrences of
@escapeNotVerified
will be verified and either marked with@noEscape
or escaped with one of these methods:\Magento\Framework\View\Element\AbstractBlock::escapeHtml
\Magento\Framework\View\Element\AbstractBlock::escapeUrl
\Magento\Framework\View\Element\AbstractBlock::escapeXssInUrl
\Magento\Framework\View\Element\AbstractBlock::escapeQuote
Also note that some output is considered safe and should not be marked with such annotations:
getTitleHtml
, are also expected to output escaped HTML