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.
The view modes for entities except Content (node) are displayed in a non-understandable order. This happens during actual theme rendering, as the render array appears normal.
Comment | File | Size | Author |
---|---|---|---|
#9 | 0001-Issue-2094873-by-fgm-entity-view-modes-were-displaye.patch | 8.9 KB | fgm |
#8 | 0001-Issue-2094873-by-fgm-entity-view-modes-were-displaye.patch | 1.25 KB | fgm |
#5 | 2094873-fail-5.patch | 916 bytes | swentel |
#5 | 2094873-pass-5.patch | 1.79 KB | swentel |
#1 | 0001-Issue-2094873-by-fgm-entity-view-modes-were-displaye.patch | 1.25 KB | fgm |
Comments
Comment #1
fgmSuggested patch reorders by entity name.
Also, the "Content" (node) view modes are listed first by an explicit choice in code without any user-level explanation, which seems weird in terms of UX, but since this is an explicit choice, the patch doesn't change this.
Comment #2
fgmThe patch fixes both pages.
Comment #3
swentel CreditAttribution: swentel commentedMakes sense indeed.
Comment #4
alexpottI'm guessing we should have a test for this then
Comment #5
swentel CreditAttribution: swentel commentedComment #6
fgmActually, I wrote a test and allowed me to catch another error situation which my original patch does not cover, so I've started restructuring a bit more and using
ConfigEntityBase::sort()
for entity types ordering.So I'm marking "needs work" even though swentel's test completes my original patch.
Comment #7
swentel CreditAttribution: swentel commented@fgm are you still working on this ?
Comment #8
fgmOops, I has completely forgotten about that one. Rerolled the failing test on top of current HEAD: it is expected to fail because it demonstrates the bug. I resumed work on the actual fix this morning.
Comment #9
fgmRerolled on this afternoon's HEAD. Still not working but fresher than the one in #8.
Comment #13
fgmThis has been fixed at some point since the last patch. Marking as such.