You are here

public function FirebaseGroupManagerService::buildHeader in Firebase Push Notification (FCM) 8

Same name and namespace in other branches
  1. 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\Service

Code

public function buildHeader() {
  return parent::buildHeader() + [
    'project_id' => $this->configFactory
      ->get('firebase.settings')
      ->get('sender_id'),
  ];
}