public function PluginBase::__construct

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

Constructs a Plugin object.

Overrides PluginBase::__construct

2 calls to PluginBase::__construct()
HandlerBase::__construct in drupal/core/modules/views/lib/Drupal/views/Plugin/views/HandlerBase.php
Constructs a Handler object.
WizardPluginBase::__construct in drupal/core/modules/views/lib/Drupal/views/Plugin/views/wizard/WizardPluginBase.php
Constructs a WizardPluginBase object.
2 methods override PluginBase::__construct()
HandlerBase::__construct in drupal/core/modules/views/lib/Drupal/views/Plugin/views/HandlerBase.php
Constructs a Handler object.
WizardPluginBase::__construct in drupal/core/modules/views/lib/Drupal/views/Plugin/views/wizard/WizardPluginBase.php
Constructs a WizardPluginBase object.

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/PluginBase.php, line 58
Definition of Drupal\views\Plugin\views\PluginBase.

Class

PluginBase

Namespace

Drupal\views\Plugin\views

Code

public function __construct(array $configuration, $plugin_id, DiscoveryInterface $discovery) {
  parent::__construct($configuration, $plugin_id, $discovery);
  $this->definition = $this->discovery
    ->getDefinition($plugin_id) + $configuration;
}