class PushNotificationsMessageSenderList in Push Notifications 8
Send a simple message alert to a list of tokens. Use this if you want to preopulate the list of tokens.
Hierarchy
- class \Drupal\push_notifications\PushNotificationsMessageSenderBase
- class \Drupal\push_notifications\PushNotificationsMessageSenderList
Expanded class hierarchy of PushNotificationsMessageSenderList
1 string reference to 'PushNotificationsMessageSenderList'
1 service uses PushNotificationsMessageSenderList
File
- src/
PushNotificationsMessageSenderList.php, line 14 - Contains \Drupal\push_notifications\PushNotificationsMessageSenderList.
Namespace
Drupal\push_notificationsView source
class PushNotificationsMessageSenderList extends PushNotificationsMessageSenderBase {
/**
* @var array $tokens
* Recipient tokens.
*/
protected $tokens;
/**
* Constructor.
*
* @param \Drupal\push_notifications\PushNotificationsDispatcher $dispatcher
* Alert Dispatcher.
*/
public function __construct(PushNotificationsDispatcher $dispatcher) {
$this->dispatcher = $dispatcher;
}
/**
* {@inheritdoc}
*/
public function setTokens($tokens) {
$this->tokens = $tokens;
}
/**
* Tokens don't need to be generated, but function
* required for abstract base class.
*/
public function generateTokens() {
}
}