You are here

public function ItemsImporterInterface::refresh in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/aggregator/src/ItemsImporterInterface.php \Drupal\aggregator\ItemsImporterInterface::refresh()

Updates the feed items by triggering the import process.

This process can be slow and lengthy because it relies on network operations. Calling it on performance critical paths should be avoided.

Parameters

\Drupal\aggregator\FeedInterface $feed: The feed which items should be refreshed.

Return value

bool TRUE if there is new content for the feed FALSE otherwise.

1 method overrides ItemsImporterInterface::refresh()
ItemsImporter::refresh in core/modules/aggregator/src/ItemsImporter.php
Updates the feed items by triggering the import process.

File

core/modules/aggregator/src/ItemsImporterInterface.php, line 27
Contains \Drupal\aggregator\ItemsImporterInterface.

Class

ItemsImporterInterface
Provides an interface defining an aggregator items importer.

Namespace

Drupal\aggregator

Code

public function refresh(FeedInterface $feed);