You are here

public function NotificationInformationInterface::getWorkflow in Content Moderation Notifications 8.3

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

Checks for the workflow object of the moderated entity.

Parameters

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

Return value

\Drupal\workflows\WorkflowInterface|bool The workflow object if the entity is moderated, FALSE otherwise.

1 method overrides NotificationInformationInterface::getWorkflow()
NotificationInformation::getWorkflow in src/NotificationInformation.php
Checks for the workflow object of the moderated entity.

File

src/NotificationInformationInterface.php, line 33

Class

NotificationInformationInterface
Interface for notification_information service.

Namespace

Drupal\content_moderation_notifications

Code

public function getWorkflow(ContentEntityInterface $entity);