You are here

public function NotificationInterface::sendNotification in Content Moderation Notifications 8.3

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

Send notifications for a given entity and set of notifications.

Parameters

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

\Drupal\content_moderation_notifications\ContentModerationNotificationInterface[] $notifications: List of content moderation notification entities.

Return value

bool TRUE if this entity is moderated, FALSE otherwise.

1 method overrides NotificationInterface::sendNotification()
Notification::sendNotification in src/Notification.php
Send notifications for a given entity and set of notifications.

File

src/NotificationInterface.php, line 31

Class

NotificationInterface
Interface for notification service.

Namespace

Drupal\content_moderation_notifications

Code

public function sendNotification(EntityInterface $entity, array $notifications);