You are here

public function NotificationInformationInterface::getTransition in Content Moderation Notifications 8.2

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

Checks for the current transition of the moderated entity.

Parameters

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

Return value

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 45

Class

NotificationInformationInterface
Interface for notification_information service.

Namespace

Drupal\content_moderation_notifications

Code

public function getTransition(EntityInterface $entity);