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
Not sure if this is intentional, but I don't think so. I usually set "default" as ContentEntityForm and as long as the link templates are set, the edit/add forms work fine.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#8 | 2875896-8.patch | 4.81 KB | Sam152 |
#8 | 2875896-8-TEST-ONLY.patch | 4.07 KB | Sam152 |
#5 | 2875896-5.patch | 762 bytes | timmillwood |
Comments
Comment #2
timmillwoodI think this is something we inherited from Workbench moderation. This will become an issue once more entity types become revisionable, such as
taxonomy_term
which only has a default and delete form handler.Here's an initial patch.
Comment #3
timmillwoodComment #5
timmillwoodI should at least read a patch before I upload it.
Comment #6
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedThis does the trick, but is it NW for tests? We'll get implicit test coverage once more core entity types become revisionable.
Comment #8
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedGot around to writing a test case for this.
Comment #10
timmillwoodLGTM
Comment #11
larowlanNormally I'd ask for the third argument to is_array here, because strings - but $operation is always a string here.
Comment #13
larowlanCommitted as c9b3084 and pushed to 8.5.x