You are here

public function Feed::setCreatedTime in Feeds 8.3

Sets the feed creation timestamp.

Parameters

int $timestamp: The feed creation timestamp.

Overrides FeedInterface::setCreatedTime

File

src/Entity/Feed.php, line 147

Class

Feed
Defines the feed entity class.

Namespace

Drupal\feeds\Entity

Code

public function setCreatedTime($timestamp) {
  $this
    ->set('created', (int) $timestamp);
}