You are here

function hook_aggregator_processor_info_alter in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/aggregator/aggregator.api.php \hook_aggregator_processor_info_alter()

Perform alterations on the available processors.

Parameters

array[] $info: Array of processor plugins

Related topics

1 function implements hook_aggregator_processor_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_processor_info_alter in core/modules/aggregator/tests/modules/aggregator_test/aggregator_test.module
Implements hook_aggregator_processor_info_alter().

File

core/modules/aggregator/aggregator.api.php, line 47
Aggregator API documentation.

Code

function hook_aggregator_processor_info_alter(array &$info) {
  if (empty($info['foo_processor'])) {
    return;
  }
  $info['foo_processor']['class'] = Drupal\foo\Plugin\aggregator\processor\FooDefaultProcessor::class;
}