Twig Components / Methods / form_parent
Note: You are currently reading the documentation for Bolt 5.0. Looking for the documentation for Bolt 5.2 instead?
form_parent(form_view)
is a Twig function to return the parent form view or null if the form view already is the root
form. Using this function should be preferred over accessing the parent form using form.parent. The latter way will
produce different results when a child form is named parent.
Source: Forms
Edit this page on GitHub
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on Github.
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on Github.