Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

views-exposed-form.html.twig

Same filename in this branch
  1. 11.1.x core/profiles/demo_umami/themes/umami/templates/classy/views/views-exposed-form.html.twig
  2. 11.1.x core/themes/starterkit_theme/templates/views/views-exposed-form.html.twig
  3. 11.1.x core/themes/claro/templates/views-exposed-form.html.twig
  4. 11.1.x core/modules/views/templates/views-exposed-form.html.twig

Theme override of a views exposed form.

Available variables:

  • form: A render element representing the form.

See also

template_preprocess_views_exposed_form()

File

core/themes/stable9/templates/views/views-exposed-form.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override of a views exposed form.
  5. *
  6. * Available variables:
  7. * - form: A render element representing the form.
  8. *
  9. * @see template_preprocess_views_exposed_form()
  10. */
  11. #}
  12. {% if q is not empty %}
  13. {#
  14. This ensures that, if clean URLs are off, the 'q' is added first,
  15. as a hidden form element, so that it shows up first in the POST URL.
  16. #}
  17. {{ q }}
  18. {% endif %}
  19. {{ form }}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal