From 8a300d4337a0506316ad4b29a5e77515454a2d25 Mon Sep 17 00:00:00 2001
From: nod_ <nod_@598310.no-reply.drupal.org>
Date: Thu, 30 May 2024 00:57:07 +0200
Subject: [PATCH] Issue #3437166 by Utkarsh_33, smustgrave, Jaypan, wdmartin:
 Update documentation for table.html.twig around table cells

(cherry picked from commit 8778ac18017f93c0907c219c7e5c6d4c081e66ba)
---
 core/modules/system/templates/table.html.twig                   | 2 ++
 .../themes/umami/templates/classy/dataset/table.html.twig       | 2 ++
 core/themes/claro/templates/classy/dataset/table.html.twig      | 2 ++
 core/themes/stable9/templates/dataset/table.html.twig           | 2 ++
 core/themes/starterkit_theme/templates/dataset/table.html.twig  | 2 ++
 5 files changed, 10 insertions(+)

diff --git a/core/modules/system/templates/table.html.twig b/core/modules/system/templates/table.html.twig
index 443657014f61..cfcb0bf976c0 100644
--- a/core/modules/system/templates/table.html.twig
+++ b/core/modules/system/templates/table.html.twig
@@ -30,6 +30,8 @@
  *     - content: The string to display in the table cell.
  *     - active_table_sort: A boolean indicating whether the cell is the active
          table sort.
+ *     - header: Boolean indicating whether the cell should be rendered as a
+ *       header (<th>) or not (<td>).
  * - 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.
diff --git a/core/profiles/demo_umami/themes/umami/templates/classy/dataset/table.html.twig b/core/profiles/demo_umami/themes/umami/templates/classy/dataset/table.html.twig
index 2afa9c155642..cdfe0bff7e73 100644
--- a/core/profiles/demo_umami/themes/umami/templates/classy/dataset/table.html.twig
+++ b/core/profiles/demo_umami/themes/umami/templates/classy/dataset/table.html.twig
@@ -30,6 +30,8 @@
  *     - content: The string to display in the table cell.
  *     - active_table_sort: A boolean indicating whether the cell is the active
          table sort.
+ *     - header: Boolean indicating whether the cell should be rendered as a
+ *       header (<th>) or not (<td>).
  * - 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.
diff --git a/core/themes/claro/templates/classy/dataset/table.html.twig b/core/themes/claro/templates/classy/dataset/table.html.twig
index 2afa9c155642..cdfe0bff7e73 100644
--- a/core/themes/claro/templates/classy/dataset/table.html.twig
+++ b/core/themes/claro/templates/classy/dataset/table.html.twig
@@ -30,6 +30,8 @@
  *     - content: The string to display in the table cell.
  *     - active_table_sort: A boolean indicating whether the cell is the active
          table sort.
+ *     - header: Boolean indicating whether the cell should be rendered as a
+ *       header (<th>) or not (<td>).
  * - 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.
diff --git a/core/themes/stable9/templates/dataset/table.html.twig b/core/themes/stable9/templates/dataset/table.html.twig
index 231ada2b38b8..d9e12ff284f8 100644
--- a/core/themes/stable9/templates/dataset/table.html.twig
+++ b/core/themes/stable9/templates/dataset/table.html.twig
@@ -30,6 +30,8 @@
  *     - content: The string to display in the table cell.
  *     - active_table_sort: A boolean indicating whether the cell is the active
          table sort.
+ *     - header: Boolean indicating whether the cell should be rendered as a
+ *       header (<th>) or not (<td>).
  * - 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.
diff --git a/core/themes/starterkit_theme/templates/dataset/table.html.twig b/core/themes/starterkit_theme/templates/dataset/table.html.twig
index 2afa9c155642..cdfe0bff7e73 100644
--- a/core/themes/starterkit_theme/templates/dataset/table.html.twig
+++ b/core/themes/starterkit_theme/templates/dataset/table.html.twig
@@ -30,6 +30,8 @@
  *     - content: The string to display in the table cell.
  *     - active_table_sort: A boolean indicating whether the cell is the active
          table sort.
+ *     - header: Boolean indicating whether the cell should be rendered as a
+ *       header (<th>) or not (<td>).
  * - 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.
-- 
GitLab