Table Render Array Documention Is incomplete and confusing

Created on 29 July 2019, over 5 years ago
Updated 5 January 2024, 11 months ago

Problem/Motivation

API page: https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Render%21...

The documentation is missing a lot of details. Table seems to support #footer and #caption, which are not listed.

Second, in the example, the table rows are not being added to the #rows element. This could be confusing.

Steps to reproduce

See documentation of in table class in core/lib/Drupal/Core/Render/Element/Table.php

Proposed resolution

Add an example using the #rows element
Add comments to the existing example (without the #rows element) to make it less confusing
Add information about #footer and #caption

Remaining tasks

a.
b. Review
c. Commit

User interface changes

NA

API changes

NA

Data model changes

NA

Release notes snippet

NA

🐛 Bug report
Status

Fixed

Version

10.2

Component
Documentation 

Last updated about 16 hours ago

No maintainer
Created by

🇺🇸United States JasonSafro

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024