You are here

public function FeedsFetcher::path in Feeds 8.2

Construct a path for a concrete fetcher/source combination. The result of this method matches up with the general path definition in FeedsFetcher::menuItem(). For example usage look at FeedsHTTPFetcher.

Return value

Path for this fetcher/source combination.

2 calls to FeedsFetcher::path()
FeedsHTTPFetcher::subscribe in lib/Drupal/feeds/Plugin/feeds/fetcher/FeedsHTTPFetcher.php
Implement FeedsFetcher::subscribe() - subscribe to hub.
FeedsHTTPFetcher::unsubscribe in lib/Drupal/feeds/Plugin/feeds/fetcher/FeedsHTTPFetcher.php
Implement FeedsFetcher::unsubscribe() - unsubscribe from hub.

File

lib/Drupal/feeds/Plugin/FeedsFetcher.php, line 70
Contains the FeedsFetcher and related classes.

Class

FeedsFetcher
Abstract class, defines shared functionality between fetchers.

Namespace

Drupal\feeds\Plugin

Code

public function path($feed_nid = 0) {
  $id = urlencode($this->id);
  if ($feed_nid && is_numeric($feed_nid)) {
    return "feeds/importer/{$id}/{$feed_nid}";
  }
  return "feeds/importer/{$id}";
}