You are here

public function Feed::setQueuedTime in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/aggregator/src/Entity/Feed.php \Drupal\aggregator\Entity\Feed::setQueuedTime()

Sets the time when this feed was queued for refresh, 0 if not queued.

Parameters

int $queued: The timestamp of the last refresh.

Return value

$this The class instance that this method is called on.

Overrides FeedInterface::setQueuedTime

1 call to Feed::setQueuedTime()
Feed::refreshItems in core/modules/aggregator/src/Entity/Feed.php
Updates the feed items by triggering the import process.

File

core/modules/aggregator/src/Entity/Feed.php, line 346

Class

Feed
Defines the aggregator feed entity class.

Namespace

Drupal\aggregator\Entity

Code

public function setQueuedTime($queued) {
  $this
    ->set('queued', $queued);
  return $this;
}