You are here

public function SelectionPluginBase::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionPluginBase.php \Drupal\Core\Entity\EntityReferenceSelection\SelectionPluginBase::__construct()

Constructs a new selection 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.

Overrides PluginBase::__construct

2 calls to SelectionPluginBase::__construct()
DefaultSelection::__construct in core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/DefaultSelection.php
Constructs a new DefaultSelection object.
ViewsSelection::__construct in core/modules/views/src/Plugin/EntityReferenceSelection/ViewsSelection.php
Constructs a new ViewsSelection object.
2 methods override SelectionPluginBase::__construct()
DefaultSelection::__construct in core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/DefaultSelection.php
Constructs a new DefaultSelection object.
ViewsSelection::__construct in core/modules/views/src/Plugin/EntityReferenceSelection/ViewsSelection.php
Constructs a new ViewsSelection object.

File

core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionPluginBase.php, line 27

Class

SelectionPluginBase
Provides a base class for configurable selection handlers.

Namespace

Drupal\Core\Entity\EntityReferenceSelection

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this
    ->setConfiguration($configuration);
}