Version 1
[yaffs-website] / web / core / modules / system / templates / tablesort-indicator.html.twig
1 {#
2 /**
3  * @file
4  * Default theme implementation for displaying a tablesort indicator.
5  *
6  * Available variables:
7  * - style: Either 'asc' or 'desc', indicating the sorting direction.
8  *
9  * @ingroup themeable
10  */
11 #}
12 {%
13   set classes = [
14     'tablesort',
15     'tablesort--' ~ style,
16   ]
17 %}
18 <span{{ attributes.addClass(classes) }}>
19   <span class="visually-hidden">
20     {% if style == 'asc' -%}
21       {{ 'Sort ascending'|t }}
22     {% else -%}
23       {{ 'Sort descending'|t }}
24     {% endif %}
25   </span>
26 </span>