views-ui-display-tab-bucket.html.twig

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

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.

See also

template_preprocess_views_ui_display_tab_bucket()

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>

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