private function PushNotificationsBroadcasterGcm::getHeaders in Push Notifications 8
Get the headers for sending broadcast.
1 call to PushNotificationsBroadcasterGcm::getHeaders()
- PushNotificationsBroadcasterGcm::sendTokenBundle in src/
PushNotificationsBroadcasterGcm.php - Send a token bundle.
File
- src/
PushNotificationsBroadcasterGcm.php, line 234 - Contains \Drupal\push_notifications\PushNotificationsBroadcasterGcm.
Class
- PushNotificationsBroadcasterGcm
- Broadcasts Android messages.
Namespace
Drupal\push_notificationsCode
private function getHeaders() {
$headers = array();
$headers[] = 'Content-Type:application/json';
$headers[] = 'Authorization:key=' . \Drupal::config('push_notifications.gcm')
->get('api_key');
return $headers;
}