You are here

public function PluginId::__construct in Plugin 8.2

Same name in this branch
  1. 8.2 src/Plugin/DataType/PluginId.php \Drupal\plugin\Plugin\DataType\PluginId::__construct()
  2. 8.2 src/Plugin/views/filter/PluginId.php \Drupal\plugin\Plugin\views\filter\PluginId::__construct()

Constructs a new instance.

Parameters

mixed[] $configuration: The plugin configuration.

string $plugin_id: The plugin ID.

mixed[] $plugin_definition: The plugin definition.

\Drupal\plugin\PluginType\PluginTypeInterface $plugin_type: The plugin type.

Overrides HandlerBase::__construct

File

src/Plugin/views/filter/PluginId.php, line 41

Class

PluginId
Provides a Views filter for plugin IDs.

Namespace

Drupal\plugin\Plugin\views\filter

Code

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