function hook_aggregator_fetcher_info_alter in Drupal 9
Same name and namespace in other branches
- 8 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 - Aggregator API documentation.
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;
}