views-view-summary.html.twig
Same filename in this branch
- 8.9.x core/profiles/demo_umami/themes/umami/templates/classy/views/views-view-summary.html.twig
- 8.9.x core/themes/seven/templates/classy/views/views-view-summary.html.twig
- 8.9.x core/themes/claro/templates/classy/views/views-view-summary.html.twig
- 8.9.x core/themes/bartik/templates/classy/views/views-view-summary.html.twig
- 8.9.x core/themes/stable/templates/views/views-view-summary.html.twig
- 8.9.x core/themes/classy/templates/views/views-view-summary.html.twig
Same filename in other branches
- 9 core/profiles/demo_umami/themes/umami/templates/classy/views/views-view-summary.html.twig
- 9 core/themes/stable9/templates/views/views-view-summary.html.twig
- 9 core/themes/seven/templates/classy/views/views-view-summary.html.twig
- 9 core/themes/claro/templates/classy/views/views-view-summary.html.twig
- 9 core/themes/bartik/templates/classy/views/views-view-summary.html.twig
- 9 core/themes/stable/templates/views/views-view-summary.html.twig
- 9 core/themes/starterkit_theme/templates/views/views-view-summary.html.twig
- 9 core/themes/classy/templates/views/views-view-summary.html.twig
- 9 core/modules/views/templates/views-view-summary.html.twig
- 10 core/profiles/demo_umami/themes/umami/templates/classy/views/views-view-summary.html.twig
- 10 core/themes/stable9/templates/views/views-view-summary.html.twig
- 10 core/themes/claro/templates/classy/views/views-view-summary.html.twig
- 10 core/themes/starterkit_theme/templates/views/views-view-summary.html.twig
- 10 core/modules/views/templates/views-view-summary.html.twig
- 11.x core/profiles/demo_umami/themes/umami/templates/classy/views/views-view-summary.html.twig
- 11.x core/themes/stable9/templates/views/views-view-summary.html.twig
- 11.x core/themes/claro/templates/classy/views/views-view-summary.html.twig
- 11.x core/themes/starterkit_theme/templates/views/views-view-summary.html.twig
- 11.x core/modules/views/templates/views-view-summary.html.twig
Default theme implementation to display a list of summary lines.
Available variables:
- rows: The rows contained in this view.
Each row contains:
- url: The summary link URL.
- link: The summary link text.
- count: The number of items under this grouping.
- attributes: HTML attributes to apply to each row.
- active: A flag indicating whether the row is active.
- options: Flags indicating how the summary should be displayed.
This contains:
- count: A flag indicating whether the count should be displayed.
See also
template_preprocess_views_view_summary()
File
-
core/
modules/ views/ templates/ views-view-summary.html.twig
View source
- {#
- /**
- * @file
- * Default theme implementation to display a list of summary lines.
- *
- * Available variables:
- * - rows: The rows contained in this view.
- * Each row contains:
- * - url: The summary link URL.
- * - link: The summary link text.
- * - count: The number of items under this grouping.
- * - attributes: HTML attributes to apply to each row.
- * - active: A flag indicating whether the row is active.
- * - options: Flags indicating how the summary should be displayed.
- * This contains:
- * - count: A flag indicating whether the count should be displayed.
- *
- * @see template_preprocess_views_view_summary()
- *
- * @ingroup themeable
- */
- #}
- <ul>
- {% for row in rows %}
- <li><a href="{{ row.url }}"{{ row.attributes.addClass(row.active ? 'is-active')|without('href') }}>{{ row.link }}</a>
- {% if options.count %}
- ({{ row.count }})
- {% endif %}
- </li>
- {% endfor %}
- </ul>
Related topics
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.