You are here

interface NotificationInterface in Content Moderation Notifications 8.2

Same name and namespace in other branches
  1. 8.3 src/NotificationInterface.php \Drupal\content_moderation_notifications\NotificationInterface

Interface for notification service.

Hierarchy

Expanded class hierarchy of NotificationInterface

All classes that implement NotificationInterface

File

src/NotificationInterface.php, line 10

Namespace

Drupal\content_moderation_notifications
View source
interface NotificationInterface {

  /**
   * Send notifications for a given entity and set of notifications.
   *
   * @param \Drupal\Core\Entity\EntityInterface $entity
   *   The entity we may be moderating.
   * @param \Drupal\content_moderation_notifications\ContentModerationNotificationInterface[] $notifications
   *   List of content moderation notification entities.
   *
   * @return bool
   *   TRUE if this entity is moderated, FALSE otherwise.
   */
  public function sendNotification(EntityInterface $entity, array $notifications);

}

Members

Namesort descending Modifiers Type Description Overrides
NotificationInterface::sendNotification public function Send notifications for a given entity and set of notifications. 1