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

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

Default theme implementation 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/modules/views_ui/templates/views-ui-display-tab-bucket.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation 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 -%}
  29. <h3 class="views-ui-display-tab-bucket__title">{{ title }}</h3>
  30. {%- endif %}
  31. {% if actions -%}
  32. {{ actions }}
  33. {%- endif %}
  34. {{ content }}
  35. </div>

Related topics


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