function ThemePreprocess::preprocessTablesortIndicator
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Theme/ThemePreprocess.php \Drupal\Core\Theme\ThemePreprocess::preprocessTablesortIndicator()
Prepares variables for tablesort indicators.
Default template: tablesort-indicator.html.twig.
File
-
core/
lib/ Drupal/ Core/ Theme/ ThemePreprocess.php, line 698
Class
- ThemePreprocess
- Preprocess for common/core theme templates.
Namespace
Drupal\Core\ThemeCode
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.