public function ItemsImporterInterface::refresh in Drupal 9
Same name and namespace in other branches
- 8 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 22
Class
- ItemsImporterInterface
- Provides an interface defining an aggregator items importer.
Namespace
Drupal\aggregatorCode
public function refresh(FeedInterface $feed);