views-ui-build-group-filter-form.html.twig

Same filename in this branch
  1. 10 core/themes/stable9/templates/admin/views-ui-build-group-filter-form.html.twig
  2. 10 core/modules/views_ui/templates/views-ui-build-group-filter-form.html.twig
Same filename in other branches
  1. 9 core/themes/stable9/templates/admin/views-ui-build-group-filter-form.html.twig
  2. 9 core/themes/claro/templates/views/views-ui-build-group-filter-form.html.twig
  3. 9 core/themes/stable/templates/admin/views-ui-build-group-filter-form.html.twig
  4. 9 core/modules/views_ui/templates/views-ui-build-group-filter-form.html.twig
  5. 8.9.x core/themes/stable/templates/admin/views-ui-build-group-filter-form.html.twig
  6. 8.9.x core/modules/views_ui/templates/views-ui-build-group-filter-form.html.twig
  7. 11.x core/themes/stable9/templates/admin/views-ui-build-group-filter-form.html.twig
  8. 11.x core/themes/claro/templates/views/views-ui-build-group-filter-form.html.twig
  9. 11.x core/modules/views_ui/templates/views-ui-build-group-filter-form.html.twig

Theme override for Views UI build group filter form.

Available variables:

  • form: A render element representing the form. Contains the following:

    • form_description: The exposed filter's description.
    • expose_button: The button to toggle the expose filter form.
    • group_button: Toggle options between single and grouped filters.
    • label: A filter label input field.
    • description: A filter description field.
    • value: The filters available values.
    • optional: A checkbox to require this filter or not.
    • remember: A checkbox to remember selected filter value(s) (per user).
    • widget: Radio Buttons to select the filter widget.
    • add_group: A button to add another row to the table.
    • more: A details element for additional field exposed filter fields.
  • table: A rendered table element of the group filter form.

See also

template_preprocess_views_ui_build_group_filter_form()

File

core/themes/claro/templates/views/views-ui-build-group-filter-form.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override for Views UI build group filter form.
  5. *
  6. * Available variables:
  7. * - form: A render element representing the form. Contains the following:
  8. * - form_description: The exposed filter's description.
  9. * - expose_button: The button to toggle the expose filter form.
  10. * - group_button: Toggle options between single and grouped filters.
  11. * - label: A filter label input field.
  12. * - description: A filter description field.
  13. * - value: The filters available values.
  14. * - optional: A checkbox to require this filter or not.
  15. * - remember: A checkbox to remember selected filter value(s) (per user).
  16. * - widget: Radio Buttons to select the filter widget.
  17. * - add_group: A button to add another row to the table.
  18. * - more: A details element for additional field exposed filter fields.
  19. * - table: A rendered table element of the group filter form.
  20. *
  21. * @see template_preprocess_views_ui_build_group_filter_form()
  22. *
  23. * @ingroup themeable
  24. */
  25. #}
  26. {{ form.form_description }}
  27. {{ form.expose_button }}
  28. {{ form.group_button }}
  29. <div class="views-config-group-region">
  30. <div class="views-group-box">
  31. {{ form.optional }}
  32. {{ form.remember }}
  33. </div>
  34. <div class="views-group-box">
  35. {{ form.widget }}
  36. {{ form.label }}
  37. {{ form.description }}
  38. </div>
  39. </div>
  40. {#
  41. Render the rest of the form elements excluding elements that are rendered
  42. elsewhere.
  43. #}
  44. {{ form|without(
  45. 'form_description',
  46. 'expose_button',
  47. 'group_button',
  48. 'optional',
  49. 'remember',
  50. 'widget',
  51. 'label',
  52. 'description',
  53. 'add_group',
  54. 'more'
  55. )
  56. }}
  57. {{ table }}
  58. {{ form.add_group }}
  59. {{ form.more }}

Related topics


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