You are here

public function ConfigurablePluginBase::__construct in Search API 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 PluginBase::__construct

2 calls to ConfigurablePluginBase::__construct()
BackendPluginBase::__construct in src/Backend/BackendPluginBase.php
Constructs a \Drupal\Component\Plugin\PluginBase object.
IndexPluginBase::__construct in src/Plugin/IndexPluginBase.php
Constructs a \Drupal\Component\Plugin\PluginBase object.
2 methods override ConfigurablePluginBase::__construct()
BackendPluginBase::__construct in src/Backend/BackendPluginBase.php
Constructs a \Drupal\Component\Plugin\PluginBase object.
IndexPluginBase::__construct in src/Plugin/IndexPluginBase.php
Constructs a \Drupal\Component\Plugin\PluginBase object.

File

src/Plugin/ConfigurablePluginBase.php, line 30

Class

ConfigurablePluginBase
Provides a base class for all configurable Search API plugins.

Namespace

Drupal\search_api\Plugin

Code

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