You are here

public function NotificationInformationInterface::getTransition in Content Moderation Notifications 8.3

Same name and namespace in other branches
  1. 8.2 src/NotificationInformationInterface.php \Drupal\content_moderation_notifications\NotificationInformationInterface::getTransition()

Checks for the current transition of the moderated entity.

Parameters

\Drupal\Core\Entity\ContentEntityInterface $entity: The entity we may be moderating.

Return value

\Drupal\workflows\TransitionInterface|bool The transition object if the entity is moderated FALSE otherwise.

1 method overrides NotificationInformationInterface::getTransition()
NotificationInformation::getTransition in src/NotificationInformation.php
Checks for the current transition of the moderated entity.

File

src/NotificationInformationInterface.php, line 44

Class

NotificationInformationInterface
Interface for notification_information service.

Namespace

Drupal\content_moderation_notifications

Code

public function getTransition(ContentEntityInterface $entity);