You are here

public function ItemStorage::loadAll in MongoDB 8

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

mongodb_aggregator/src/Entity/ItemStorage.php, line 36
Contains \Drupal\aggregator\ItemStorage.

Class

ItemStorage
This is 100% identical to the core item storage class, should be removed if core removes.

Namespace

Drupal\mongodb_aggregator\Entity

Code

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