You are here

public function TestProcessor::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/aggregator/tests/modules/aggregator_test/src/Plugin/aggregator/processor/TestProcessor.php \Drupal\aggregator_test\Plugin\aggregator\processor\TestProcessor::__construct()

Constructs a TestProcessor object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Config\ConfigFactoryInterface $config: The configuration factory object.

Overrides PluginBase::__construct

File

core/modules/aggregator/tests/modules/aggregator_test/src/Plugin/aggregator/processor/TestProcessor.php, line 59

Class

TestProcessor
Defines a default processor implementation.

Namespace

Drupal\aggregator_test\Plugin\aggregator\processor

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $config) {
  $this->configFactory = $config;
  parent::__construct($configuration + $this
    ->getConfiguration(), $plugin_id, $plugin_definition);
}