You are here

public function PushNotificationsToken::getToken in Push Notifications 8

Returns the entity token.

Return value

string The token for this entity.

Overrides PushNotificationsTokenInterface::getToken

File

src/Entity/PushNotificationsToken.php, line 85
Contains \Drupal\push_notifications\Entity\PushNotificationsToken.

Class

PushNotificationsToken
Defines the token entity.

Namespace

Drupal\push_notifications\Entity

Code

public function getToken() {
  return $this
    ->get('token')->value;
}