3 namespace Drupal\aggregator;
5 use Drupal\Core\Entity\ContentEntityStorageInterface;
8 * Defines an interface for aggregator item entity storage classes.
10 interface ItemStorageInterface extends ContentEntityStorageInterface {
13 * Returns the count of the items in a feed.
15 * @param \Drupal\aggregator\FeedInterface $feed
19 * The count of items associated with a feed.
21 public function getItemCount(FeedInterface $feed);
24 * Loads feed items from all feeds.
27 * (optional) The number of items to return. Defaults to unlimited.
29 * @return \Drupal\aggregator\ItemInterface[]
30 * An array of the feed items.
32 public function loadAll($limit = NULL);
35 * Loads feed items filtered by a feed.
38 * The feed ID to filter by.
40 * (optional) The number of items to return. Defaults to unlimited.
42 * @return \Drupal\aggregator\ItemInterface[]
43 * An array of the feed items.
45 public function loadByFeed($fid, $limit = NULL);