diff --git a/core/includes/theme.inc b/core/includes/theme.inc index 303db67..c0a21bd 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -1346,10 +1346,6 @@ function template_preprocess_table(&$variables) { $cell_content = drupal_render($cell_content); } } - // Active table sort information. - if (isset($variables['header'][$col_key]['data']) && $variables['header'][$col_key]['data'] == $ts['name'] && !empty($variables['header'][$col_key]['field'])) { - $variables[$section][$row_key]['cells'][$col_key]['active_table_sort'] = TRUE; - } // Copy RESPONSIVE_PRIORITY_LOW/RESPONSIVE_PRIORITY_MEDIUM // class from header to cell as needed. if (isset($responsive_classes[$responsive_index])) { diff --git a/core/modules/system/templates/table.html.twig b/core/modules/system/templates/table.html.twig index 3d0252e..78d8ce8 100644 --- a/core/modules/system/templates/table.html.twig +++ b/core/modules/system/templates/table.html.twig @@ -28,8 +28,6 @@ * - attributes: Any HTML attributes, such as "colspan", to apply to the * table cell. * - content: The string to display in the table cell. - * - active_table_sort: A boolean indicating whether the cell is the active - table sort. * - footer: Table footer rows, in the same format as the rows variable. * - empty: The message to display in an extra row if table does not have * any rows. @@ -62,12 +60,7 @@ {% for cell in header %} - {% - set cell_classes = [ - cell.active_table_sort ? 'active', - ] - %} - <{{ cell.tag }}{{ cell.attributes.addClass(cell_classes) }}> + <{{ cell.tag }}{{ cell.attributes }}> {{- cell.content -}} {% endfor %}