You are here

public function FeedsHTTPFetcher::importPeriod in Feeds 8.2

Implement FeedsFetcher::importPeriod().

Overrides FeedsFetcher::importPeriod

File

lib/Drupal/feeds/Plugin/feeds/fetcher/FeedsHTTPFetcher.php, line 227
Contains \Drupal\feeds\Plugin\feeds\fetcher\FeedsHTTPFetcher.

Class

FeedsHTTPFetcher
Defines an HTTP fetcher.

Namespace

Drupal\feeds\Plugin\feeds\fetcher

Code

public function importPeriod(FeedsSource $source) {
  if ($this
    ->subscriber($source->feed_nid)
    ->subscribed()) {
    return 259200;

    // Delay for three days if there is a successful subscription.
  }
}