public function NotificationInterface::sendNotification in Content Moderation Notifications 8.2
Same name and namespace in other branches
- 8.3 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 23
Class
- NotificationInterface
- Interface for notification service.
Namespace
Drupal\content_moderation_notificationsCode
public function sendNotification(EntityInterface $entity, array $notifications);