You are here

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

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/claro/templates/views/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. * @ingroup themeable
  18. */
  19. #}
  20. {%
  21. set classes = [
  22. 'views-ui-display-tab-bucket',
  23. name ? name|clean_class,
  24. overridden ? 'overridden',
  25. ]
  26. %}
  27. <div{{ attributes.addClass(classes) }}>
  28. {% if title or actions %}
  29. <div class="views-ui-display-tab-bucket__header{% if actions %} views-ui-display-tab-bucket__header--actions{% endif %}">
  30. {% if title -%}
  31. <h3 class="views-ui-display-tab-bucket__title">{{ title }}</h3>
  32. {%- endif %}
  33. {% if actions -%}
  34. <div class="views-ui-display-tab-bucket__actions">{{ actions }}</div>
  35. {%- endif %}
  36. </div>
  37. {% endif %}
  38. {{ content }}
  39. </div>

Related topics