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

Same filename in this branch
  1. 11.x core/themes/stable9/templates/admin/views-ui-build-group-filter-form.html.twig
  2. 11.x core/themes/claro/templates/views/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. 10 core/themes/stable9/templates/admin/views-ui-build-group-filter-form.html.twig
  8. 10 core/themes/claro/templates/views/views-ui-build-group-filter-form.html.twig
  9. 10 core/modules/views_ui/templates/views-ui-build-group-filter-form.html.twig

Default theme implementation 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/modules/views_ui/templates/views-ui-build-group-filter-form.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation 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-left-40">
  30. {{ form.optional }}
  31. {{ form.remember }}
  32. </div>
  33. <div class="views-right-60">
  34. {{ form.widget }}
  35. {{ form.label }}
  36. {{ form.description }}
  37. </div>
  38. {#
  39. Render the rest of the form elements excluding elements that are rendered
  40. elsewhere.
  41. #}
  42. {{ form|without(
  43. 'form_description',
  44. 'expose_button',
  45. 'group_button',
  46. 'optional',
  47. 'remember',
  48. 'widget',
  49. 'label',
  50. 'description',
  51. 'add_group',
  52. 'more'
  53. )
  54. }}
  55. {{ table }}
  56. {{ form.add_group }}
  57. {{ form.more }}

Related topics


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