Twig Components / Methods / form_rest
Note: You are currently reading the documentation for Bolt 5.0. Looking for the documentation for Bolt 5.2 instead?
form_rest(form_view, variables)
is a Twig function to render all fields that have not yet been rendered for the
given form. It’s a good idea to always have this somewhere inside your form as it’ll render hidden fields for you and
make any fields you forgot to render easier to spot (since it’ll render the field for you).
{{ form_rest(form) }}
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.