Get a Demo

dump

The dump function outputs the contents of a variable for debugging. The data is formatted and styled in an Aptuitiv HTML element. If no variable is passed, then all variables in the current context will be output.

This is an alternative to the debug filter.

This function is unique to Aptuitiv. It is not part of the core Twig functionality.
{# Output one variable #}
{{ dump(variable) }}

{# Output multiple variables #}
{{ dump(variable, anotherVar, yetAnotherVar) }}

{# Output all variables #}
{{ dump() }}
Get Started With Aptuitiv