form.html.twig
Same filename in this branch
Same filename in other branches
- 9 core/themes/stable9/templates/form/form.html.twig
- 9 core/themes/stable/templates/form/form.html.twig
- 9 core/themes/starterkit_theme/templates/form/form.html.twig
- 9 core/themes/classy/templates/form/form.html.twig
- 9 core/modules/system/templates/form.html.twig
- 10 core/themes/stable9/templates/form/form.html.twig
- 10 core/themes/starterkit_theme/templates/form/form.html.twig
- 10 core/modules/system/templates/form.html.twig
- 11.x core/themes/stable9/templates/form/form.html.twig
- 11.x core/themes/starterkit_theme/templates/form/form.html.twig
- 11.x core/modules/system/templates/form.html.twig
Theme override for a 'form' element.
Available variables
- attributes: A list of HTML attributes for the wrapper element.
- children: The child elements of the form.
See also
File
-
core/
themes/ stable/ templates/ form/ form.html.twig
View source
- {#
- /**
- * @file
- * Theme override for a 'form' element.
- *
- * Available variables
- * - attributes: A list of HTML attributes for the wrapper element.
- * - children: The child elements of the form.
- *
- * @see template_preprocess_form()
- */
- #}
- <form{{ attributes }}>
- {{ children }}
- </form>
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.