function 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.
4 calls to SelectionPluginBase::__construct()
- DefaultSelection::__construct in core/
lib/ Drupal/ Core/ Entity/ Plugin/ EntityReferenceSelection/ DefaultSelection.php - Constructs a new DefaultSelection object.
- 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.
- 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\EntityReferenceSelectionCode
public function __construct(array $configuration, $plugin_id, $plugin_definition) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->setConfiguration($configuration);
}