function ThemePreprocess::preprocessTablesortIndicator

Prepares variables for tablesort indicators.

Default template: tablesort-indicator.html.twig.

File

core/lib/Drupal/Core/Theme/ThemePreprocess.php, line 696

Class

ThemePreprocess
Preprocess for common/core theme templates.

Namespace

Drupal\Core\Theme

Code

public function preprocessTablesortIndicator(array &$variables) : void {
  $variables['#attached']['library'][] = 'core/drupal.tablesort';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.