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.