Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 610a7a8

Browse filesBrowse files
committed
form_help description added
1 parent 675bbce commit 610a7a8
Copy full SHA for 610a7a8

File tree

Expand file treeCollapse file tree

1 file changed

+15
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+15
-0
lines changed

‎reference/forms/twig_reference.rst

Copy file name to clipboardExpand all lines: reference/forms/twig_reference.rst
+15Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.