We are going to take this issue as part of the Symetris β contribution workshop.
KarimB β changed the visibility of the branch 11.x to hidden.
Just to mention that I applied the patch #2 and it works for me! Thanks.
No worries. We've learned a lot about container definitions and shallow merge ;)
Here is a shorter version of the documentation.
We added documentation in development.services.yml about the Shallow Merge of the files that provide container definitions.
We are going to work on this issue as part of the Novice contribution workshop of Symetris β .
apaderno β credited KarimB β .
KarimB β changed the visibility of the branch 3406109-correct-milli-in to active.
KarimB β changed the visibility of the branch 3406109-correct-milli-in to hidden.
If we switch to 11.x this would be a duplicated of
https://www.drupal.org/project/drupal/issues/3071143
π
Table Render Array Documention Is incomplete and confusing
RTBC
So I think we could close this issue.
Thx @ichigeki btw.
I added an example with the use of #footer and #caption and added comments to the existing example.
KarimB β made their first commit to this issueβs fork.
I'm going to take this issue as part of the Symetris' contribution workshop.
Actually the example is working fine. No need to explicitly declare the #rows property when adding sub-elements (or children) to $form['contacts'] (the main table element). When adding children like $form['contacts'][$i][...] these children will populate the #rows property automatically in preRenderTable(). I added some comments for better understanding.
I also added a new example with the #rows property explicitly declared and added information for #footer and #caption.
(I made a merge request to 11.x)
Hope this help ;)
KarimB β made their first commit to this issueβs fork.