Twig Components / Methods / dump
Note: You are currently reading the documentation for Bolt 5.0. Looking for the documentation for Bolt 5.2 instead?
dump()
is a Twig function to dump the entire object, similar to PHP's var_dump.
{% set about = content('page', {'slug': 'about'}) %}
{{ dump(about) }}
For more info on debugging your Bolt site, see the chapter on Debugging Bolt.
Note: Don't forget to set APP_DEBUG=1
in your .env
file. Otherwise the
dump()
will output nothing at all.
Edit this page on GitHub
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on Github.
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on Github.