By sam152 on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.8.x
Introduced in version:
8.8.0
Issue links:
Description:
An additional getOriginalState method has been added to both the content_moderation.moderation_information service and the \Drupal\content_moderation\ModerationInformationInterface interface.
The purpose of this method is to provide the saved moderation state of an entity revision or translation, before changes were made to that entity. The method will fall back to providing a reasonable default moderation state (draft or published) depending on the published status of the entity, if the entity has not been moderated before.
This is useful in some scenarios where an entity has been modified, in preparation for saving a new revision and access to the previous moderation state is required.
Impacts:
Module developers