You are here

views-ui-display-tab-bucket.html.twig in Drupal 9

Theme override for each "box" on the display query edit screen.

Available variables:

  • attributes: HTML attributes to apply to the container element.
  • actions: Action links such as "Add", "And/Or, Rearrange" for the content.
  • title: The title of the bucket, e.g. "Fields", "Filter Criteria", etc.
  • content: Content items such as fields or settings in this container.
  • name: The name of the bucket, e.g. "Fields", "Filter Criteria", etc.
  • overridden: A boolean indicating the setting has been overridden from the default.

File

core/themes/stable9/templates/admin/views-ui-display-tab-bucket.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override for each "box" on the display query edit screen.
  5. *
  6. * Available variables:
  7. * - attributes: HTML attributes to apply to the container element.
  8. * - actions: Action links such as "Add", "And/Or, Rearrange" for the content.
  9. * - title: The title of the bucket, e.g. "Fields", "Filter Criteria", etc.
  10. * - content: Content items such as fields or settings in this container.
  11. * - name: The name of the bucket, e.g. "Fields", "Filter Criteria", etc.
  12. * - overridden: A boolean indicating the setting has been overridden from the
  13. * default.
  14. *
  15. * @see template_preprocess_views_ui_display_tab_bucket()
  16. */
  17. #}
  18. {%
  19. set classes = [
  20. 'views-ui-display-tab-bucket',
  21. name ? name|clean_class,
  22. overridden ? 'overridden',
  23. ]
  24. %}
  25. <div{{ attributes.addClass(classes) }}>
  26. {% if title -%}
  27. <h3 class="views-ui-display-tab-bucket__title">{{ title }}</h3>
  28. {%- endif %}
  29. {% if actions -%}
  30. {{ actions }}
  31. {%- endif %}
  32. {{ content }}
  33. </div>