{#
/**
* @file
* Theme override for displaying a tablesort indicator.
*
* Available variables:
* - style: Either 'asc' or 'desc', indicating the sorting direction.
*
* @todo Remove after https://www.drupal.org/node/1973418 is in.
*/
#}
{%
set classes = [
'tablesort',
'tablesort--' ~ style,
]
%}
{% if style in ['asc', 'desc'] %}
{% if style == 'asc' -%}
{{ 'Sort ascending'|t }}
{% else -%}
{{ 'Sort descending'|t }}
{% endif %}
{% endif %}