form.html.twig
Same filename in this branch
Default theme implementation 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/
modules/ system/ templates/ form.html.twig
View source
- {#
- /**
- * @file
- * Default theme implementation 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()
- *
- * @ingroup themeable
- */
- #}
- <form{{ attributes }}>
- {{ children }}
- </form>
Related topics
- Theme system overview
- Functions and templates for the user interface that themes can override.