By timmillwood on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.3.x
Introduced in version:
8.3.0
Issue links:
Description:
When calling $entity->setNewRevision(TRUE); the revision id is set to null.
#2809227: Store revision id in originalRevisionId property to use after revision id is updated introduces OriginalRevisionIdInterface and implements it's two methods in ContentEntityBase.
This allows $entity->getOriginalRevisionId(); to be called to get the original revision id, before the entity is saved with a new revision id.
Impacts:
Module developers