API page: https://api.drupal.org/api/drupal/core%21includes%21theme.inc/function/t...
Enter a descriptive title (above), then describe the problem you have found:
Dumping $variables in a template_preprocess_table function I see the associative array :
header[], rows[], attributes[], caption, sticky, responsive, empty[],footer, colgroups, title_prefix, title_suffix
header[] has: arrays of [tag (eg 'th'), attributes[storage[]], content (eg 'nid')]
rows[] has: arrays of [attributes[storage[]], cells[] ]
cells[] has: arrays of [tag (eg 'td'), attributes[storage], content[] ]
content[] has: [ #markup (eg 123), #tree, #parents, #id (eg 'edit-tablelist-10-c8'), #sorted.... #wrapper_attributes[] ]
ie much more involved and different.
It feels like whole page needs rewriting and linking with a page that explains how to use these.
Active
10.5 ✨
documentation