You are here

public function AccessToken::getCreatedTime in Access unpublished 8

Gets the Access token creation timestamp.

Return value

int Creation timestamp of the Access token.

Overrides AccessTokenInterface::getCreatedTime

File

src/Entity/AccessToken.php, line 76

Class

AccessToken
Defines the Access token entity.

Namespace

Drupal\access_unpublished\Entity

Code

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