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?
For better understanding please have a look this view
with the following implementation
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