From ec93ab9e940a97e31c3f0bfb93a3d450e303d817 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Wed, 1 Mar 2023 10:27:33 +0100 Subject: [PATCH] [Twig] Update the docs of the twig.debug option --- reference/configuration/twig.rst | 3 +++ templates.rst | 2 ++ 2 files changed, 5 insertions(+) diff --git a/reference/configuration/twig.rst b/reference/configuration/twig.rst index d7a6e64916b..c686a6fd036 100644 --- a/reference/configuration/twig.rst +++ b/reference/configuration/twig.rst @@ -155,6 +155,9 @@ debug If ``true``, the compiled templates include a ``__toString()`` method that can be used to display their nodes. +This option also controls the behavior of :ref:`the Twig dump utilities `. +If this option is ``false``, the ``dump()`` function doesn't output any contents. + .. _config-twig-default-path: default_path diff --git a/templates.rst b/templates.rst index bc21e1de06a..3f451faa0f9 100644 --- a/templates.rst +++ b/templates.rst @@ -818,6 +818,8 @@ and also to check the Twig features added when :ref:`installing packages