You are here

public function PushNotificationsToken::getCreatedTimestamp in Push Notifications 8

Returns the entity's created timestamp.

Return value

string The created timestamp (Unix) for this entity.

Overrides PushNotificationsTokenInterface::getCreatedTimestamp

1 call to PushNotificationsToken::getCreatedTimestamp()
PushNotificationsToken::getCreatedTime in src/Entity/PushNotificationsToken.php
Returns the entity's created time.

File

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

Class

PushNotificationsToken
Defines the token entity.

Namespace

Drupal\push_notifications\Entity

Code

public function getCreatedTimestamp() {
  return $this
    ->get('created')->value;
}