Question

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?

Was it helpful?

Solution 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

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top