In which element are image properties configured in etc/view.xml?


1 Answer 1


In etc/view.xml

<view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/view.xsd">
    <vars module="Module_Name">
        <var name="Var_Name">#Value</var>

Extend Magento\Catalog\Helper\Image And Get Value of Variable

$this->getConfigView()->getVarValue('Module_Name', 'var_name');

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.