public function PluginBase::__construct

Same name in this branch
  1. 8.x drupal/core/lib/Drupal/Component/Plugin/PluginBase.php \Drupal\Component\Plugin\PluginBase::__construct()
  2. 8.x drupal/core/modules/views/lib/Drupal/views/Plugin/views/PluginBase.php \Drupal\views\Plugin\views\PluginBase::__construct()

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.

array $plugin_definition: The plugin implementation definition.

12 calls to PluginBase::__construct()
BlockBase::__construct in drupal/core/modules/block/lib/Drupal/block/BlockBase.php
Constructs a Drupal\Component\Plugin\PluginBase object.
CancelUser::__construct in drupal/core/modules/user/lib/Drupal/user/Plugin/Action/CancelUser.php
Constructs a DeleteNode object.
ConfigurableActionBase::__construct in drupal/core/lib/Drupal/Core/Action/ConfigurableActionBase.php
Constructs a Drupal\Component\Plugin\PluginBase object.
ContextAwarePluginBase::__construct in drupal/core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php
Overrides \Drupal\Component\Plugin\PluginBase::__construct().
DeleteNode::__construct in drupal/core/modules/node/lib/Drupal/node/Plugin/Action/DeleteNode.php
Constructs a new DeleteNode object.

... See full list

12 methods override PluginBase::__construct()
BlockBase::__construct in drupal/core/modules/block/lib/Drupal/block/BlockBase.php
Constructs a Drupal\Component\Plugin\PluginBase object.
CancelUser::__construct in drupal/core/modules/user/lib/Drupal/user/Plugin/Action/CancelUser.php
Constructs a DeleteNode object.
ConfigurableActionBase::__construct in drupal/core/lib/Drupal/Core/Action/ConfigurableActionBase.php
Constructs a Drupal\Component\Plugin\PluginBase object.
ContextAwarePluginBase::__construct in drupal/core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php
Overrides \Drupal\Component\Plugin\PluginBase::__construct().
DeleteNode::__construct in drupal/core/modules/node/lib/Drupal/node/Plugin/Action/DeleteNode.php
Constructs a new DeleteNode object.

... See full list

File

drupal/core/lib/Drupal/Component/Plugin/PluginBase.php, line 45
Definition of 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, array $plugin_definition) {
  $this->configuration = $configuration;
  $this->pluginId = $plugin_id;
  $this->pluginDefinition = $plugin_definition;
}