FeedStorageInterface.php 513 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace Drupal\aggregator;
  3. use Drupal\Core\Entity\ContentEntityStorageInterface;
  4. /**
  5. * Defines an interface for aggregator feed entity storage classes.
  6. */
  7. interface FeedStorageInterface extends ContentEntityStorageInterface {
  8. /**
  9. * Denotes that a feed's items should never expire.
  10. */
  11. const CLEAR_NEVER = 0;
  12. /**
  13. * Returns the fids of feeds that need to be refreshed.
  14. *
  15. * @return array
  16. * A list of feed ids to be refreshed.
  17. */
  18. public function getFeedIdsToRefresh();
  19. }