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
In #2926540: Split revision-handling methods to a separate entity storage interface and #2929496: Add dedicated interfaces to group methods dealing with revision translation and clean up the related documentation we reorganized the revision-related methods in ContentEntityInterface
and ContentEntityStorageInterface
and moved them into dedicated interfaces. As of now, only two revision-related methods are left in ContentEntityInterface
.
Proposed resolution
Move ContentEntityInterface::getLoadedRevisionId()
and ContentEntityInterface::updateLoadedRevisionId()
to RevisionableInterface
.
Remaining tasks
- Validate the proposed solution
- Write a patch
- Reviews
User interface changes
None
API changes
See above
Data model changes
None
Comment | File | Size | Author |
---|---|---|---|
#2 | entity-move_rev-2938315-2.patch | 1.95 KB | plach |
Comments
Comment #2
plachComment #3
amateescu CreditAttribution: amateescu for Pfizer, Inc. commentedLook good to me, in line with what we've being doing recently with all the revision related methods :)
Comment #5
catchCommitted 4838f6d and pushed to 8.6.x. Thanks!