function SelectionPluginBase::__construct
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionPluginBase.php \Drupal\Core\Entity\EntityReferenceSelection\SelectionPluginBase::__construct()
- 8.9.x core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionPluginBase.php \Drupal\Core\Entity\EntityReferenceSelection\SelectionPluginBase::__construct()
- 11.x 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.
1 call to SelectionPluginBase::__construct()
- DefaultSelection::__construct in core/
lib/ Drupal/ Core/ Entity/ Plugin/ EntityReferenceSelection/ DefaultSelection.php - Constructs a new DefaultSelection 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\EntityReferenceSelectionCode
public function __construct(array $configuration, $plugin_id, $plugin_definition) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->setConfiguration($configuration);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.