By lauriii on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
9.5.x
Introduced in version:
9.5.0
Issue links:
Description:
The Twig built in dump function is prone to running out of memory when debugging render arrays. The dump() now uses Symfony VarDumper when available which makes it less prone to these issues. If you are not already using Symfony VarDumper, it can be added to a project as a dev dependency by running: composer require --dev symfony/var-dumper.
Debug value of foo:
{{ dump(foo) }}
See all available variables in a template:
{{ dump() }}
Impacts:
Module developers
Themers