You are here

public function PushNotificationsDispatcher::setTokens in Push Notifications 8

File

src/PushNotificationsDispatcher.php, line 85
Contains \Drupal\push_notifications\PushNotificationsDispatcher.

Class

PushNotificationsDispatcher
Handles dispatching of messages. This class will send out the message to all networks in the list of tokens.

Namespace

Drupal\push_notifications

Code

public function setTokens($tokens) {
  $this->tokens = $this
    ->groupTokensByNetwork($tokens);
}