public function PushNotificationsDispatcher::__construct in Push Notifications 8
Constructor.
File
- src/
PushNotificationsDispatcher.php, line 44 - 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_notificationsCode
public function __construct() {
// Set available networks.
$this->networks = push_notifications_get_networks();
}