Modifier: dump


Dump a variable to the browser and see under the hood with data types and array exportation. Definitely just for debugging when in development.

food: 
  delicious:
    - bacon
    - sushi
{{ food | dump }}
array:2 [▼
  "delicious" => array:2 [▶]
]

You can also use the dump tag to achieve a similar effect.

Additional Reading

Learn how to use and chain modifiers in the Antlers template guide.

Last modified on December 6, 2019