ItemStorage::loadAll

public ItemStorage::loadAll($limit = NULL)

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 30

Class

ItemStorage
Controller class for aggregators items.

Namespace

Drupal\aggregator

Code

public function loadAll($limit = NULL) {
  $query = \Drupal::entityQuery('aggregator_item');
  return $this->executeFeedItemQuery($query, $limit);
}
doc_Drupal
2016-10-29 09:21:28
Comments
Leave a Comment

Please login to continue.