Variables, objects and attributes
Objects in Twig contain attributes which output dynamic content on a page. A twig object and attribute combined is often referred to as a variable.
To output a variable it must be wrapped in {{ }}
The product object contains an attribute called title that will output the title/name of the product, i.e. {{ product.title }}.
• There are various types of attributes available, you can read more about them here.
• You can also apply filters to attributes in order to modify the content they output.
• Certain functions will also modify the content outputted by variables.
Certain objects are only available on particular page files (known as views). Other objects, are part of the global object which mean they will output on any view.
All the objects available on our platform, and their attributes, are documented in the Objects section of these help guides.