interface NotificationInterface in Content Moderation Notifications 8.2
Same name and namespace in other branches
- 8.3 src/NotificationInterface.php \Drupal\content_moderation_notifications\NotificationInterface
Interface for notification service.
Hierarchy
- interface \Drupal\content_moderation_notifications\NotificationInterface
Expanded class hierarchy of NotificationInterface
All classes that implement NotificationInterface
File
- src/
NotificationInterface.php, line 10
Namespace
Drupal\content_moderation_notificationsView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
NotificationInterface:: |
public | function | Send notifications for a given entity and set of notifications. | 1 |