We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c03e4c0 commit 2ea9797Copy full SHA for 2ea9797
form/form_customization.rst
@@ -312,6 +312,18 @@ obvious (since it'll render the field for you).
312
313
{{ form_rest(form) }}
314
315
+parent_form(form_view)
316
+......................
317
+
318
+.. versionadded:: 4.3
319
320
+ The ``parent_form()`` function was introduced in Symfony 4.3.
321
322
+Returns the parent form view or ``null`` if the form view already is the
323
+root form. Using this function should be preferred over accessing the parent
324
+form using ``form.parent``. The latter way will produce different results
325
+when a child form is named ``parent``.
326
327
Tests
328
~~~~~
329
0 commit comments