claro-8.x-1.x-dev/templates/admin/tablesort-indicator.html.twig

templates/admin/tablesort-indicator.html.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{#
/**
 * @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,
  ]
%}
<span{{ attributes.addClass(classes) }}>
  {% if style in ['asc', 'desc'] %}
    <span class="visually-hidden">
      {% if style == 'asc' -%}
        {{ 'Sort ascending'|t }}
      {% else -%}
        {{ 'Sort descending'|t }}
      {% endif %}
    </span>
  {% endif %}
</span>

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc