function hook_aggregator_parser_info_alter in Drupal 9
Same name and namespace in other branches
- 8 core/modules/aggregator/aggregator.api.php \hook_aggregator_parser_info_alter()
Perform alterations on the available parsers.
Parameters
array[] $info: Array of parser plugins
Related topics
1 function implements hook_aggregator_parser_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_parser_info_alter in core/
modules/ aggregator/ tests/ modules/ aggregator_test/ aggregator_test.module - Implements hook_aggregator_parser_info_alter().
File
- core/
modules/ aggregator/ aggregator.api.php, line 33 - Aggregator API documentation.
Code
function hook_aggregator_parser_info_alter(array &$info) {
if (empty($info['foo_parser'])) {
return;
}
$info['foo_parser']['class'] = Drupal\foo\Plugin\aggregator\parser\FooDefaultParser::class;
}