Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Follow-up from #1939008: Convert theme_table() to Twig.
Splitting this off from the theme_table to twig conversion.
Comment | File | Size | Author |
---|---|---|---|
#20 | interdiff.txt | 3.26 KB | joelpittet |
#20 | 2216407-remove-_theme_table_cell-20.patch | 8.55 KB | joelpittet |
#17 | diff.txt | 392 bytes | pakmanlh |
#17 | 2216407-remove-_theme_table_cell-17.patch | 8.75 KB | pakmanlh |
#15 | interdiff.txt | 1.15 KB | joelpittet |
Comments
Comment #1
joelpittetHere's the patch
Comment #3
joelpittet1: 2216407-remove-_theme_table_cell-1.patch queued for re-testing.
Comment #4
barraponto CreditAttribution: barraponto commentedI think I never saw
|=
in Drupal before. What does it mean? Is it needed?Comment #5
joelpittetIt's here, though it's a shortcut that is rarely used. I could go with the long version for clarity:
Thanks for the review @barraponto!
Comment #6
jjcarrionI've maked the patch with the little modification. It works good on my tables as a show in a screenshot.
Comment #8
jjcarrionHere is the interdiff.
Comment #9
jjcarrion6: 2216407-remove-_theme_table_cell-6.patch queued for re-testing.
Comment #11
jjcarrionComment #12
jjcarrionComment #13
jjcarrionComment #14
jjcarrionThe patch #6 breaks the testing page /admin/config/development/testing. I don't know how to fix it.
Comment #15
joelpittetThanks @jjcarrion for the fix. I think that is a random testbot fail... but not sure... I touched up what you did there.
Wondering if maybe you could compare this patch against a duplicate issue and see if there is anything in it that needs to be merged into this one?
#1842326: Merge _theme_table_cell() into theme_table()
Comment #17
pakmanlhAfter a revision I think that all the functionality of the #1842326: Merge _theme_table_cell() into theme_table() issue are in. Only I modified a comment that made references at the removed function _theme_table_cell.
Comment #19
pakmanlh17: 2216407-remove-_theme_table_cell-17.patch queued for re-testing.
Comment #20
joelpittetI cleaned up a few mistakes and docs but they aren't the exception fix I'm looking for... will tackle this more tomorrow.
Comment #23
joelpittet20: 2216407-remove-_theme_table_cell-20.patch queued for re-testing.
Comment #25
sunActually, the patch in #1842326: Merge _theme_table_cell() into theme_table() looks more sane to me... (unless that patch misses something, which is possible since seemingly outdated...)
Comment #26
sunI worked on this, and ultimately cherry-picked code from both issues/patches...
...since this issue is newer, marking as duplicate of the older one.