form.html.twig in Drupal 10
Same filename in this branch
Same filename and directory in other branches
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.twigView 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>