8.5.x PluginBase.php PluginBase::__construct(array $configuration, $plugin_id, $plugin_definition)
8.5.x PluginBase.php PluginBase::__construct(array $configuration, $plugin_id, $plugin_definition)
8.0.x PluginBase.php PluginBase::__construct(array $configuration, $plugin_id, $plugin_definition)
8.0.x PluginBase.php PluginBase::__construct(array $configuration, $plugin_id, $plugin_definition)
8.1.x PluginBase.php PluginBase::__construct(array $configuration, $plugin_id, $plugin_definition)
8.1.x PluginBase.php PluginBase::__construct(array $configuration, $plugin_id, $plugin_definition)
8.2.x PluginBase.php PluginBase::__construct(array $configuration, $plugin_id, $plugin_definition)
8.2.x PluginBase.php PluginBase::__construct(array $configuration, $plugin_id, $plugin_definition)
8.3.x PluginBase.php PluginBase::__construct(array $configuration, $plugin_id, $plugin_definition)
8.3.x PluginBase.php PluginBase::__construct(array $configuration, $plugin_id, $plugin_definition)
8.4.x PluginBase.php PluginBase::__construct(array $configuration, $plugin_id, $plugin_definition)
8.4.x PluginBase.php PluginBase::__construct(array $configuration, $plugin_id, $plugin_definition)
8.6.x PluginBase.php PluginBase::__construct(array $configuration, $plugin_id, $plugin_definition)
8.6.x PluginBase.php PluginBase::__construct(array $configuration, $plugin_id, $plugin_definition)

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.

23 calls to PluginBase::__construct()
BlockPluginId::__construct in core/modules/block/src/Plugin/migrate/process/BlockPluginId.php
Constructs a Drupal\Component\Plugin\PluginBase object.
BlockTheme::__construct in core/modules/block/src/Plugin/migrate/process/BlockTheme.php
Constructs a BlockTheme object.
BlockVisibility::__construct in core/modules/block/src/Plugin/migrate/process/BlockVisibility.php
Constructs a Drupal\Component\Plugin\PluginBase object.
ConfigurableSearchPluginBase::__construct in core/modules/search/src/Plugin/ConfigurableSearchPluginBase.php
Constructs a Drupal\Component\Plugin\PluginBase object.
DefaultProcessor::__construct in core/modules/aggregator/src/Plugin/aggregator/processor/DefaultProcessor.php
Constructs a DefaultProcessor object.

... See full list

69 methods override PluginBase::__construct()
BlockPluginId::__construct in core/modules/block/src/Plugin/migrate/process/BlockPluginId.php
Constructs a Drupal\Component\Plugin\PluginBase object.
BlockRegion::__construct in core/modules/block/src/Plugin/migrate/process/BlockRegion.php
Constructs a BlockRegion plugin instance.
BlockTheme::__construct in core/modules/block/src/Plugin/migrate/process/BlockTheme.php
Constructs a BlockTheme object.
BlockVisibility::__construct in core/modules/block/src/Plugin/migrate/process/BlockVisibility.php
Constructs a Drupal\Component\Plugin\PluginBase object.
CancelUser::__construct in core/modules/user/src/Plugin/Action/CancelUser.php
Constructs a DeleteNode object.

... See full list

File

core/lib/Drupal/Component/Plugin/PluginBase.php, line 53

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