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.
Create an abstract reaction that uses the Entity API Revisioning. Any entity will have to implement the plugin to use this reaction class but this is to make is as easy as possible to integration new entity's
Comment | File | Size | Author |
---|---|---|---|
#7 | 1676942.patch | 36.25 KB | e2thex |
Comments
Comment #1
indytechcook CreditAttribution: indytechcook commentedComment #2
jec006 CreditAttribution: jec006 commentedWaiting on patch getting committed to Entity API #996696: Support revisions in Entity API.
Comment #3
thekellye CreditAttribution: thekellye commentedComment #4
indytechcook CreditAttribution: indytechcook commentedPart of this issue is to help that patch get in.
Comment #5
jec006 CreditAttribution: jec006 commentedComment #6
indytechcook CreditAttribution: indytechcook commentedI've tested the initial patch to Entity API and it works great.
Comment #7
e2thex CreditAttribution: e2thex commentedall changes in 1676942
This replaces the node reaction that was in effect.
this requires the core patch from http://drupal.org/node/1730874#comment-6351058
We are changing all of the entity controllers for entities with revisions to use our EntityControllerWrapper. This Wrapper is a pass-though to the original controller, expect for the load method. in the load method it as the Entity_load_reaction to give it revision that should be load, and it pass those along to the load controller.
The reaction looks up the current revision id (from the base table) and then overrides that with values from the overrides.
Comment #8
indytechcook CreditAttribution: indytechcook commented