You are here

public function InstagramAccount::getLastImportTimestamp in Instagram Feeds 8

Gets the last successfully imported Instagram post timestamp.

Return value

int Unix timestamp or 0.

Overrides InstagramAccountInterface::getLastImportTimestamp

File

src/Entity/InstagramAccount.php, line 344

Class

InstagramAccount
Defines the instagram_account entity class.

Namespace

Drupal\instagram_feeds\Entity

Code

public function getLastImportTimestamp() : int {
  return (int) ($this
    ->get('last_import')
    ->getString() ?? 0);
}