You are here

public function PushNotification::getMessage in Push Notifications 8

Returns the entity push notification message.

Return value

string The push notification message.

Overrides PushNotificationInterface::getMessage

File

src/Entity/PushNotification.php, line 99
Contains Drupal\push_notifications\Entity\PushNotification.

Class

PushNotification
Defines the push_notification entity.

Namespace

Drupal\push_notifications\Entity

Code

public function getMessage() {
  return $this
    ->get('message')->value;
}