interface ItemStorageInterface
Same name and namespace in other branches
- 8.9.x core/modules/aggregator/src/ItemStorageInterface.php \Drupal\aggregator\ItemStorageInterface
Defines an interface for aggregator item entity storage classes.
Hierarchy
- interface \Drupal\Core\Entity\EntityStorageInterface; interface \Drupal\Core\Entity\TranslatableRevisionableStorageInterface extends \Drupal\Core\Entity\TranslatableStorageInterface, \Drupal\Core\Entity\RevisionableStorageInterface
- interface \Drupal\Core\Entity\ContentEntityStorageInterface extends \Drupal\Core\Entity\EntityStorageInterface, \Drupal\Core\Entity\TranslatableRevisionableStorageInterface
- interface \Drupal\aggregator\ItemStorageInterface extends \Drupal\Core\Entity\ContentEntityStorageInterface
- interface \Drupal\Core\Entity\ContentEntityStorageInterface extends \Drupal\Core\Entity\EntityStorageInterface, \Drupal\Core\Entity\TranslatableRevisionableStorageInterface
Expanded class hierarchy of ItemStorageInterface
All classes that implement ItemStorageInterface
2 files declare their use of ItemStorageInterface
- AggregatorFeedBlock.php in core/
modules/ aggregator/ src/ Plugin/ Block/ AggregatorFeedBlock.php - DefaultProcessor.php in core/
modules/ aggregator/ src/ Plugin/ aggregator/ processor/ DefaultProcessor.php
File
-
core/
modules/ aggregator/ src/ ItemStorageInterface.php, line 10
Namespace
Drupal\aggregatorView source
interface ItemStorageInterface extends ContentEntityStorageInterface {
/**
* Returns the count of the items in a feed.
*
* @param \Drupal\aggregator\FeedInterface $feed
* The feed entity.
*
* @return int
* The count of items associated with a feed.
*/
public function getItemCount(FeedInterface $feed);
/**
* Loads feed items from all feeds.
*
* @param int $limit
* (optional) The number of items to return. Defaults to unlimited.
*
* @return \Drupal\aggregator\ItemInterface[]
* An array of the feed items.
*/
public function loadAll($limit = NULL);
/**
* Loads feed items filtered by a feed.
*
* @param int $fid
* The feed ID to filter by.
* @param int $limit
* (optional) The number of items to return. Defaults to unlimited.
*
* @return \Drupal\aggregator\ItemInterface[]
* An array of the feed items.
*/
public function loadByFeed($fid, $limit = NULL);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.