You are here

public function PluginBase::__construct in Plug 7

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.

1 call to PluginBase::__construct()
ContextAwarePluginBase::__construct in lib/Drupal/Component/Plugin/ContextAwarePluginBase.php
Overrides \Drupal\Component\Plugin\PluginBase::__construct().
1 method overrides PluginBase::__construct()
ContextAwarePluginBase::__construct in lib/Drupal/Component/Plugin/ContextAwarePluginBase.php
Overrides \Drupal\Component\Plugin\PluginBase::__construct().

File

lib/Drupal/Component/Plugin/PluginBase.php, line 57
Contains \Drupal\Component\Plugin\PluginBase.

Class

PluginBase
Base class for plugins wishing to support metadata inspection.

Namespace

Drupal\Component\Plugin

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition) {
  $this->configuration = $configuration;
  $this->pluginId = $plugin_id;
  $this->pluginDefinition = $plugin_definition;
}