Version 1
[yaffs-website] / web / core / modules / aggregator / src / FeedStorageInterface.php
diff --git a/web/core/modules/aggregator/src/FeedStorageInterface.php b/web/core/modules/aggregator/src/FeedStorageInterface.php
new file mode 100644 (file)
index 0000000..cf30c6a
--- /dev/null
@@ -0,0 +1,25 @@
+<?php
+
+namespace Drupal\aggregator;
+
+use Drupal\Core\Entity\ContentEntityStorageInterface;
+
+/**
+ * Defines an interface for aggregator feed entity storage classes.
+ */
+interface FeedStorageInterface extends ContentEntityStorageInterface {
+
+  /**
+   * Denotes that a feed's items should never expire.
+   */
+  const CLEAR_NEVER = 0;
+
+  /**
+   * Returns the fids of feeds that need to be refreshed.
+   *
+   * @return array
+   *   A list of feed ids to be refreshed.
+   */
+  public function getFeedIdsToRefresh();
+
+}