function hook_aggregator_fetch_info

Specify the class, title, and short description of your fetcher plugins.

The title and the description provided are shown within the configuration page.

Return value

An associative array whose keys define the fetcher id and whose values contain the fetcher definitions. Each fetcher definition is itself an associative array, with the following key-value pairs:

  • class: (required) The PHP class containing the fetcher implementation.
  • title: (required) A human readable name of the fetcher.
  • description: (required) A brief (40 to 80 characters) explanation of the fetcher's functionality.

Related topics

File

drupal/core/modules/aggregator/aggregator.api.php, line 30
Documentation for aggregator API.

Code

function hook_aggregator_fetch_info() {
  return array(
    'aggregator' => array(
      'class' => 'Drupal\\aggregator\\Plugin\\aggregator\\fetcher\\DefaultFetcher',
      'title' => t('Default fetcher'),
      'description' => t('Downloads data from a URL using Drupal\'s HTTP request handler.'),
    ),
  );
}