Implements \Drupal\aggregator\Plugin\FetcherInterface::fetch().
Overrides DefaultFetcher::fetch
File
- drupal/core/modules/aggregator/tests/modules/aggregator_test/lib/Drupal/aggregator_test/Plugin/aggregator/fetcher/TestFetcher.php, line 33
- Contains \Drupal\aggregator_test\Plugin\aggregator\fetcher\TestFetcher.
Class
- TestFetcher
- Defines a test fetcher implementation.
Namespace
Drupal\aggregator_test\Plugin\aggregator\fetcher
Code
public function fetch(Feed $feed) {
if ($feed
->label() == 'Do not fetch') {
return FALSE;
}
return parent::fetch($feed);
}