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.
Problem/Motivation
Label to display is check_plain'ed in #2019071: EntityListController::buildRow() should return secure label so all implementations needs clean-up
Proposed resolution
Use parent::buildRow() in all places to prepare #1855402: Add generic weighting (tabledrag) support for config entities (DraggableListController)
API changes
no, just clean-up
Comment | File | Size | Author |
---|---|---|---|
#3 | entitylistcontroller_parent_buildrow-2027117-3.patch | 7.55 KB | tsphethean |
Comments
Comment #1
andyposttaggin
Comment #2
tsphethean CreditAttribution: tsphethean commentedComment #3
tsphethean CreditAttribution: tsphethean commentedFirst pass at this now that #2019071: EntityListController::buildRow() should return secure label is in.
Comment #4
tsphethean CreditAttribution: tsphethean commentedComment #6
tim.plunkettThis is pretty much the opposite of #2064557: Improve strange coupling in EntityListControllers by improving buildRow() and buildHeader().
We should be making buildOperations() easier to use instead, and make the new tabledrag easy to opt-into as well, not move more magic into the parent.
Comment #7
tim.plunkettThis is just wrong.
Now the label will show up twice
The intention of this issue is to ensure that the checkPlain that was added isn't missed, as well as allowing further upstream improvements to buildRow to happen.
#2064557: Improve strange coupling in EntityListControllers by improving buildRow() and buildHeader() accomplishes both of those things, without causing further DX issues or making it easier to have malformed tables.
As such, I'm marking this one as a duplicate.