form--search-block-form.html.twig
Same filename 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/ olivero/ templates/ form--search-block-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()
- */
- #}
- {%
- set classes = [
- 'search-form',
- 'search-block-form',
- ]
- %}
- <form{{ attributes.addClass(classes) }}>
- {{ children }}
- </form>
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.