input--submit--header-search.html.twig

Same filename in other branches
  1. 9 core/themes/olivero/templates/form/input--submit--header-search.html.twig
  2. 11.x core/themes/olivero/templates/form/input--submit--header-search.html.twig

Theme override for the search form submit button.

Available variables:

  • attributes: A list of HTML attributes for the input element.
  • children: Optional additional rendered elements.

See also

template_preprocess_input()

File

core/themes/olivero/templates/form/input--submit--header-search.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override for the search form submit button.
  5. *
  6. * Available variables:
  7. * - attributes: A list of HTML attributes for the input element.
  8. * - children: Optional additional rendered elements.
  9. *
  10. * @see template_preprocess_input()
  11. */
  12. #}
  13. <button{{ attributes }}>
  14. <span class="icon--search"></span>
  15. <span class="visually-hidden">{{ attributes.value }}</span>
  16. </button>
  17. {{ children }}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.