8000 minor #10921 form_help description added (atailouloute) · symfony/symfony-docs@58fa698 · GitHub
[go: up one dir, main page]

Skip to content

Commit 58fa698

Browse files
committed
minor #10921 form_help description added (atailouloute)
This PR was merged into the 4.1 branch. Discussion ---------- form_help description added Commits ------- 610a7a8 form_help description added
2 parents 675bbce + 610a7a8 commit 58fa698

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

reference/forms/twig_reference.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,21 @@ above.
166166
See ":ref:`twig-reference-form-variables`" to learn about the ``variables``
167167
argument.
168168

169+
.. _reference-forms-twig-help:
170+
171+
form_help(view, variables)
172+
--------------------------
173+
174+
Renders the help message of a given field.
175+
176+
.. code-block:: twig
177+
178+
{{ form_help(form.name) }}
179+
180+
{# change the help message #}
181+
{{ form_help(form.name, {help: 'This is a help message'}) }}
182+
183+
169184
.. _reference-forms-twig-rest:
170185

171186
form_rest(view, variables)

0 commit comments

Comments
 (0)
0