You are here

public function PushNotificationsBroadcasterGcm::setMessage in Push Notifications 8

Setter function for message.

Parameters

$message:

Overrides PushNotificationsBroadcasterInterface::setMessage

File

src/PushNotificationsBroadcasterGcm.php, line 82
Contains \Drupal\push_notifications\PushNotificationsBroadcasterGcm.

Class

PushNotificationsBroadcasterGcm
Broadcasts Android messages.

Namespace

Drupal\push_notifications

Code

public function setMessage($message) {
  $this->message = $message;

  // Set the payload.
  $this->payload = array(
    'alert' => $message,
  );
}