Template variables / tags / keys


Each template file has access to a common set of variables as well as custom ones for the current context. e.g. the product_info.html.twig file and the layouts/index.html.twig file both have access to global variables such as "company.name". However, the product_info.html.twig file will have access to specific product variables that the layouts/index.html.twig file doesn't.


A full list and auto-updated list of global variables is available on each site and can be found in Admin > Template Variables. In the same area, we also include instructions on how to look up available variables on a template through use of the "dump()" function.