You are here

public function InstagramAccount::getTokenExpirationTime in Instagram Feeds 8

Gets the Instagram long-lived token expiration time.

Return value

int Unix timestamp, when token will expire.

Overrides InstagramAccountInterface::getTokenExpirationTime

File

src/Entity/InstagramAccount.php, line 208

Class

InstagramAccount
Defines the instagram_account entity class.

Namespace

Drupal\instagram_feeds\Entity

Code

public function getTokenExpirationTime() : int {
  return (int) ($this
    ->get('token_expiration')
    ->isEmpty() ? 0 : $this
    ->get('token_expiration')
    ->getString());
}