Skip to content

Commit ea6dc7b

Browse files
committed
minor #17986 [Twig] Update the docs of the twig.debug option (javiereguiluz)
This PR was merged into the 5.4 branch. Discussion ---------- [Twig] Update the docs of the `twig.debug` option Commits ------- ec93ab9 [Twig] Update the docs of the twig.debug option
2 parents e217f00 + ec93ab9 commit ea6dc7b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

reference/configuration/twig.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ debug
155155
If ``true``, the compiled templates include a ``__toString()`` method that can
156156
be used to display their nodes.
157157

158+
This option also controls the behavior of :ref:`the Twig dump utilities <twig-dump-utilities>`.
159+
If this option is ``false``, the ``dump()`` function doesn't output any contents.
160+
158161
.. _config-twig-default-path:
159162

160163
default_path

templates.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -818,6 +818,8 @@ and also to check the Twig features added when :ref:`installing packages <symfon
818818
# pass a template path to show the physical file which will be loaded
819819
$ php bin/console debug:twig @Twig/Exception/error.html.twig
820820
821+
.. _twig-dump-utilities:
822+
821823
The Dump Twig Utilities
822824
~~~~~~~~~~~~~~~~~~~~~~~
823825

0 commit comments

Comments
 (0)