diff --git a/core/includes/theme.inc b/core/includes/theme.inc
index 6056350..b21bfb1 100644
--- a/core/includes/theme.inc
+++ b/core/includes/theme.inc
@@ -1460,6 +1460,12 @@ function drupal_pre_render_table(array $element) {
* )
* );
* @endcode
+ * - footer: An array containing the table footers. Each element of the array
+ * can be either a localized string or an associative array with the
+ * following keys:
+ * - "data": The localized summary information of the table column.
+ * - Any HTML attributes, such as "colspan", to apply to the column footer
+ * cell.
* - attributes: An array of HTML attributes to apply to the table tag.
* - caption: A localized string to use for the
tag.
* - colgroups: An array of column groups. Each element of the array can be
@@ -1549,7 +1555,7 @@ function template_preprocess_table(&$variables) {
$responsive_classes = array();
// Format the table header:
- $ts =array();
+ $ts = array();
if (!empty($variables['header'])) {
$ts = tablesort_init($variables['header']);
diff --git a/core/modules/system/templates/table.html.twig b/core/modules/system/templates/table.html.twig
index 48b0c12..4881e46 100644
--- a/core/modules/system/templates/table.html.twig
+++ b/core/modules/system/templates/table.html.twig
@@ -17,6 +17,10 @@
* - content: A localized string for the title of the column.
* - field: Field name (required for column sorting).
* - sort: Default sort order for this column ("asc" or "desc").
+ * - header: Table header cells. Each cell contains the following properties:
+ * - attributes: HTML attributes to apply to the tag.
+ * - content: A localized string for the title of the column.
+ * - field: Field name (required for column sorting).
* - sticky: A flag indicating whether to use a "sticky" table header.
* - rows: Table rows. Each row contains the following properties:
* - attributes: HTML attributes to apply to the tag.
@@ -66,9 +70,9 @@
{% for cell in footer %}
- <{{ cell.tag }}{{ cell.attributes }}>
+
{{- cell.content -}}
- {{ cell.tag }}>
+ |
{% endfor %}