You are here

public function PluginBase::__construct in Service Container 7

Same name and namespace in other branches
  1. 7.2 lib/Drupal/Component/Plugin/PluginBase.php \Drupal\Component\Plugin\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.

mixed $plugin_definition: The plugin implementation definition.

5 calls to PluginBase::__construct()
ContextAwarePluginBase::__construct in lib/Drupal/Component/Plugin/ContextAwarePluginBase.php
Overrides \Drupal\Component\Plugin\PluginBase::__construct().
Plugin3A::__construct in modules/providers/service_container_annotation_discovery/tests/modules/service_container_annotation_discovery_test/src/Plugin/Plugin3/Plugin3A/Plugin3A.php
Constructs a Drupal\Component\Plugin\PluginBase object.
Plugin4A::__construct in modules/providers/service_container_annotation_discovery/tests/modules/service_container_annotation_discovery_test/src/Plugin/Plugin4/Plugin4A/Plugin4A.php
Constructs a Drupal\Component\Plugin\PluginBase object.
Plugin7A::__construct in modules/providers/service_container_annotation_discovery/tests/modules/service_container_annotation_discovery_subtest/src/Plugin/Plugin7/Plugin7A/Plugin7A.php
Constructs a Drupal\Component\Plugin\PluginBase object.
Plugin8A::__construct in modules/providers/service_container_annotation_discovery/tests/modules/service_container_annotation_discovery_subtest/src/Plugin/Plugin8/Plugin8A/Plugin8A.php
Constructs a Drupal\Component\Plugin\PluginBase object.
5 methods override PluginBase::__construct()
ContextAwarePluginBase::__construct in lib/Drupal/Component/Plugin/ContextAwarePluginBase.php
Overrides \Drupal\Component\Plugin\PluginBase::__construct().
Plugin3A::__construct in modules/providers/service_container_annotation_discovery/tests/modules/service_container_annotation_discovery_test/src/Plugin/Plugin3/Plugin3A/Plugin3A.php
Constructs a Drupal\Component\Plugin\PluginBase object.
Plugin4A::__construct in modules/providers/service_container_annotation_discovery/tests/modules/service_container_annotation_discovery_test/src/Plugin/Plugin4/Plugin4A/Plugin4A.php
Constructs a Drupal\Component\Plugin\PluginBase object.
Plugin7A::__construct in modules/providers/service_container_annotation_discovery/tests/modules/service_container_annotation_discovery_subtest/src/Plugin/Plugin7/Plugin7A/Plugin7A.php
Constructs a Drupal\Component\Plugin\PluginBase object.
Plugin8A::__construct in modules/providers/service_container_annotation_discovery/tests/modules/service_container_annotation_discovery_subtest/src/Plugin/Plugin8/Plugin8A/Plugin8A.php
Constructs a Drupal\Component\Plugin\PluginBase object.

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;
}