You are here

public function FeedStorage::getFeedIdsToRefresh in Drupal 9

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

Returns the fids of feeds that need to be refreshed.

Return value

array A list of feed ids to be refreshed.

Overrides FeedStorageInterface::getFeedIdsToRefresh

File

core/modules/aggregator/src/FeedStorage.php, line 18

Class

FeedStorage
Defines the storage handler class for feed entities.

Namespace

Drupal\aggregator

Code

public function getFeedIdsToRefresh() {
  return $this->database
    ->query('SELECT [fid] FROM {' . $this
    ->getBaseTable() . '} WHERE [queued] = 0 AND [checked] + [refresh] < :time AND [refresh] <> :never', [
    ':time' => REQUEST_TIME,
    ':never' => static::CLEAR_NEVER,
  ])
    ->fetchCol();
}