You are here

public function NotificationInformationInterface::getNotifications in Content Moderation Notifications 8.2

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

Gets the list of notification based on the current transition.

Parameters

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

Return value

array An array containing the entity and the notifications list.

1 method overrides NotificationInformationInterface::getNotifications()
NotificationInformation::getNotifications in src/NotificationInformation.php
Gets the list of notification based on the current transition.

File

src/NotificationInformationInterface.php, line 56

Class

NotificationInformationInterface
Interface for notification_information service.

Namespace

Drupal\content_moderation_notifications

Code

public function getNotifications(EntityInterface $entity);