You are here

public function ItemStorage::loadAll in Drupal 9

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

Loads feed items from all feeds.

Parameters

int $limit: (optional) The number of items to return. Defaults to unlimited.

Return value

\Drupal\aggregator\ItemInterface[] An array of the feed items.

Overrides ItemStorageInterface::loadAll

File

core/modules/aggregator/src/ItemStorage.php, line 31

Class

ItemStorage
Defines the storage handler class for feed item entities.

Namespace

Drupal\aggregator

Code

public function loadAll($limit = NULL) {
  $query = \Drupal::entityQuery('aggregator_item');
  return $this
    ->executeFeedItemQuery($query, $limit);
}