public function FetcherInterface::fetch

Downloads feed data.

Parameters

\Drupal\aggregator\Plugin\Core\Entity\Feed $feed: A feed object representing the resource to be downloaded. $feed->url->value 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

TRUE if fetching was successful, FALSE otherwise.

1 method overrides FetcherInterface::fetch()
DefaultFetcher::fetch in drupal/core/modules/aggregator/lib/Drupal/aggregator/Plugin/aggregator/fetcher/DefaultFetcher.php
Implements \Drupal\aggregator\Plugin\FetcherInterface::fetch().

File

drupal/core/modules/aggregator/lib/Drupal/aggregator/Plugin/FetcherInterface.php, line 35
Contains \Drupal\aggregator\Plugin\FetcherInterface.

Class

FetcherInterface
Defines an interface for aggregator fetcher implementations.

Namespace

Drupal\aggregator\Plugin

Code

public function fetch(Feed $feed);