3 namespace Drupal\aggregator;
6 * Provides an interface defining an aggregator items importer.
8 interface ItemsImporterInterface {
11 * Updates the feed items by triggering the import process.
13 * This process can be slow and lengthy because it relies on network
14 * operations. Calling it on performance critical paths should be avoided.
16 * @param \Drupal\aggregator\FeedInterface $feed
17 * The feed which items should be refreshed.
20 * TRUE if there is new content for the feed FALSE otherwise.
22 public function refresh(FeedInterface $feed);
25 * Deletes all imported items from a feed.
27 * @param \Drupal\aggregator\FeedInterface $feed
28 * The feed that associated items should be deleted from.
30 public function delete(FeedInterface $feed);