function hook_aggregator_fetcher_info_alter

Same name in other branches
  1. 8.9.x core/modules/aggregator/aggregator.api.php \hook_aggregator_fetcher_info_alter()

Perform alterations on the available fetchers.

Parameters

array[] $info: Array of fetcher plugins

Related topics

1 function implements hook_aggregator_fetcher_info_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

aggregator_test_aggregator_fetcher_info_alter in core/modules/aggregator/tests/modules/aggregator_test/aggregator_test.module
Implements hook_aggregator_fetcher_info_alter().

File

core/modules/aggregator/aggregator.api.php, line 19

Code

function hook_aggregator_fetcher_info_alter(array &$info) {
    if (empty($info['foo_fetcher'])) {
        return;
    }
    $info['foo_fetcher']['class'] = Drupal\foo\Plugin\aggregator\fetcher\FooDefaultFetcher::class;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.