You are here

public function ConfigurableProdCheckProcessorBase::__construct in Production check & Production monitor 8

Constructs a Drupal\Component\Plugin\PluginBase 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.

Overrides ProdCheckProcessorBase::__construct

File

src/Plugin/ProdCheckProcessor/ConfigurableProdCheckProcessorBase.php, line 19

Class

ConfigurableProdCheckProcessorBase
Provides a base implementation for a configurable Production check processor plugin.

Namespace

Drupal\prod_check\Plugin\ProdCheckProcessor

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ProdCheckPluginManager $manager, ProdCheckCategoryPluginManager $category_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $manager, $category_manager);
  $this->configuration += $this
    ->defaultConfiguration();
}