You are here

ItemStorageInterface.php in Zircon Profile 8

Same filename and directory in other branches
  1. 8.0 core/modules/aggregator/src/ItemStorageInterface.php

Namespace

Drupal\aggregator

File

core/modules/aggregator/src/ItemStorageInterface.php
View source
<?php

/**
 * @file
 * Contains \Drupal\aggregator\ItemStorageInterface.
 */
namespace Drupal\aggregator;

use Drupal\Core\Entity\ContentEntityStorageInterface;

/**
 * Defines an interface for aggregator item entity storage classes.
 */
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);

}

Interfaces

Namesort descending Description
ItemStorageInterface Defines an interface for aggregator item entity storage classes.