views-mini-pager.html.twig
Same filename in this branch
- 9 core/profiles/demo_umami/themes/umami/templates/classy/views/views-mini-pager.html.twig
- 9 core/themes/olivero/templates/views/views-mini-pager.html.twig
- 9 core/themes/stable9/templates/views/views-mini-pager.html.twig
- 9 core/themes/seven/templates/classy/views/views-mini-pager.html.twig
- 9 core/themes/claro/templates/views/views-mini-pager.html.twig
- 9 core/themes/bartik/templates/classy/views/views-mini-pager.html.twig
- 9 core/themes/stable/templates/views/views-mini-pager.html.twig
- 9 core/themes/starterkit_theme/templates/views/views-mini-pager.html.twig
- 9 core/themes/classy/templates/views/views-mini-pager.html.twig
Same filename in other branches
- 8.9.x core/profiles/demo_umami/themes/umami/templates/classy/views/views-mini-pager.html.twig
- 8.9.x core/themes/seven/templates/classy/views/views-mini-pager.html.twig
- 8.9.x core/themes/claro/templates/views/views-mini-pager.html.twig
- 8.9.x core/themes/bartik/templates/classy/views/views-mini-pager.html.twig
- 8.9.x core/themes/stable/templates/views/views-mini-pager.html.twig
- 8.9.x core/themes/classy/templates/views/views-mini-pager.html.twig
- 8.9.x core/modules/views/templates/views-mini-pager.html.twig
- 10 core/profiles/demo_umami/themes/umami/templates/classy/views/views-mini-pager.html.twig
- 10 core/themes/olivero/templates/views/views-mini-pager.html.twig
- 10 core/themes/stable9/templates/views/views-mini-pager.html.twig
- 10 core/themes/claro/templates/views/views-mini-pager.html.twig
- 10 core/themes/starterkit_theme/templates/views/views-mini-pager.html.twig
- 10 core/modules/views/templates/views-mini-pager.html.twig
- 11.x core/profiles/demo_umami/themes/umami/templates/classy/views/views-mini-pager.html.twig
- 11.x core/themes/olivero/templates/views/views-mini-pager.html.twig
- 11.x core/themes/stable9/templates/views/views-mini-pager.html.twig
- 11.x core/themes/claro/templates/views/views-mini-pager.html.twig
- 11.x core/themes/starterkit_theme/templates/views/views-mini-pager.html.twig
- 11.x core/modules/views/templates/views-mini-pager.html.twig
Default theme implementation for a views mini-pager.
Available variables:
- heading_id: Pagination heading ID.
- items: List of pager items.
See also
template_preprocess_views_mini_pager()
File
-
core/
modules/ views/ templates/ views-mini-pager.html.twig
View source
- {#
- /**
- * @file
- * Default theme implementation for a views mini-pager.
- *
- * Available variables:
- * - heading_id: Pagination heading ID.
- * - items: List of pager items.
- *
- * @see template_preprocess_views_mini_pager()
- *
- * @ingroup themeable
- */
- #}
- {% if items.previous or items.next %}
- <nav role="navigation" aria-labelledby="{{ heading_id }}">
- <h4 id="{{ heading_id }}" class="visually-hidden">{{ 'Pagination'|t }}</h4>
- <ul class="js-pager__items">
- {% if items.previous %}
- <li>
- <a href="{{ items.previous.href }}" title="{{ 'Go to previous page'|t }}" rel="prev"{{ items.previous.attributes|without('href', 'title', 'rel') }}>
- <span class="visually-hidden">{{ 'Previous page'|t }}</span>
- <span aria-hidden="true">{{ items.previous.text|default('‹‹'|t) }}</span>
- </a>
- </li>
- {% endif %}
- {% if items.current %}
- <li>
- {% trans %}
- Page {{ items.current }}
- {% endtrans %}
- </li>
- {% endif %}
- {% if items.next %}
- <li>
- <a href="{{ items.next.href }}" title="{{ 'Go to next page'|t }}" rel="next"{{ items.next.attributes|without('href', 'title', 'rel') }}>
- <span class="visually-hidden">{{ 'Next page'|t }}</span>
- <span aria-hidden="true">{{ items.next.text|default('››'|t) }}</span>
- </a>
- </li>
- {% endif %}
- </ul>
- </nav>
- {% endif %}
Related topics
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.