interface NotificationInterface in Content Moderation Notifications 8.3
Same name and namespace in other branches
- 8.2 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 {
/**
* Processes a given entity in transition.
*
* @param \Drupal\Core\Entity\EntityInterface $entity
* The entity being transitioned from one state to another.
*/
public function processEntity(EntityInterface $entity);
/**
* 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 | Processes a given entity in transition. | 1 |
NotificationInterface:: |
public | function | Send notifications for a given entity and set of notifications. | 1 |