Get Variable Values in View.xml
-
14-04-2021 - |
質問
I am trying to create a custom module with a block that should get the values of variables in view.xml. How can I do this?
解決 2
I found the answer here. It provides all the needed steps you do to get the variable values in view.xml https://devdocs.magento.com/guides/v2.4/frontend-dev-guide/themes/theme-images.html#view_xml_vars
他のヒント
For better understanding please have a look this view
https://github.com/magento/magento2/blob/2.4.0/app/code/Magento/Catalog/etc/view.xml
with the following implementation
所属していません magento.stackexchange