You are here

public function SubscribersInterface::getSubscribers in Message Subscribe 8

Retrieve a list of subscribers for a given entity.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity to retrieve subscribers for.

\Drupal\message\MessageInterface $message: The message entity.

array $options: (optional) An array of options with the same elements as the `$subscribe_options` array for `self::sendMessage()`.

array $context: (optional) The context array, passed by reference. This has the same elements as the `$context` paramater for `self::sendMessage()`.

Return value

\Drupal\message_subscribe\Subscribers\DeliveryCandidateInterface[] Array of delivery candidate objects keyed with the user IDs to send notifications to.

1 method overrides SubscribersInterface::getSubscribers()
Subscribers::getSubscribers in src/Subscribers.php
Retrieve a list of subscribers for a given entity.

File

src/SubscribersInterface.php, line 96

Class

SubscribersInterface
Subscribers service.

Namespace

Drupal\message_subscribe

Code

public function getSubscribers(EntityInterface $entity, MessageInterface $message, array $options = [], array &$context = []);