function FetcherInterface::fetch

Downloads feed data.

Parameters

\Drupal\aggregator\FeedInterface $feed: A feed object representing the resource to be downloaded. $feed->getUrl() contains the link to the feed. Download the data at the URL and expose it to other modules by attaching it to $feed->source_string.

Return value

bool TRUE if fetching was successful, FALSE otherwise.

File

core/modules/aggregator/src/Plugin/FetcherInterface.php, line 35

Class

FetcherInterface
Defines an interface for aggregator fetcher implementations.

Namespace

Drupal\aggregator\Plugin

Code

public function fetch(FeedInterface $feed);

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