function ItemsImporterInterface::refresh

Same name in other branches
  1. 8.9.x 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\aggregator

Code

public function refresh(FeedInterface $feed);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.