You are here

public function FeedsFetcher::menuItem in Feeds 8.2

Menu item definition for fetchers of this class. Note how the path component in the item definition matches the return value of FeedsFetcher::path();

Requests to this menu item will be routed to FeedsFetcher::request().

Return value

An array where the key is the Drupal menu item path and the value is a valid Drupal menu item definition.

File

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

Class

FeedsFetcher
Abstract class, defines shared functionality between fetchers.

Namespace

Drupal\feeds\Plugin

Code

public function menuItem() {
  return array(
    'feeds/importer/%feeds_importer' => array(
      'page callback' => 'feeds_fetcher_callback',
      'page arguments' => array(
        2,
        3,
      ),
      'access callback' => TRUE,
      'file' => 'feeds.pages.inc',
      'type' => MENU_CALLBACK,
    ),
  );
}