public function NotificationInformationInterface::getPreviousState in Content Moderation Notifications 8.3
Gets the from/previous state of the entity.
Parameters
\Drupal\Core\Entity\ContentEntityInterface $entity: The moderated entity.
Return value
\Drupal\workflows\StateInterface The current state of the entity.
1 method overrides NotificationInformationInterface::getPreviousState()
- NotificationInformation::getPreviousState in src/
NotificationInformation.php - Gets the from/previous state of the entity.
File
- src/
NotificationInformationInterface.php, line 55
Class
- NotificationInformationInterface
- Interface for notification_information service.
Namespace
Drupal\content_moderation_notificationsCode
public function getPreviousState(ContentEntityInterface $entity);