function hook_aggregator_processor_info_alter

Same name and namespace in other branches
  1. 8.9.x 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

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;
}

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