You are here

public function InstagramAccount::setLastImportTimestamp in Instagram Feeds 8

Sets the last successfully imported Instagram post timestamp.

Parameters

int $timestamp: Unix timestamp or 0.

Return value

$this

Overrides InstagramAccountInterface::setLastImportTimestamp

File

src/Entity/InstagramAccount.php, line 351

Class

InstagramAccount
Defines the instagram_account entity class.

Namespace

Drupal\instagram_feeds\Entity

Code

public function setLastImportTimestamp(int $timestamp = 0) {
  return $this
    ->set('last_import', $timestamp, FALSE);
}