public function FirebaseGroupManagerService::buildHeader in Firebase Push Notification (FCM) 8
Same name and namespace in other branches
- 3.0.x src/Service/FirebaseGroupManagerService.php \Drupal\firebase\Service\FirebaseGroupManagerService::buildHeader()
Build the header.
Return value
array Array with request header.
Overrides FirebaseServiceBase::buildHeader
File
- src/
Service/ FirebaseGroupManagerService.php, line 37
Class
- FirebaseGroupManagerService
- Service for managing device groups.
Namespace
Drupal\firebase\ServiceCode
public function buildHeader() {
return parent::buildHeader() + [
'project_id' => $this->configFactory
->get('firebase.settings')
->get('sender_id'),
];
}