public function SelectionPluginBase::defaultConfiguration in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionPluginBase.php \Drupal\Core\Entity\EntityReferenceSelection\SelectionPluginBase::defaultConfiguration()
Gets default configuration for this plugin.
Return value
array An associative array with the default configuration.
Overrides ConfigurableInterface::defaultConfiguration
4 calls to SelectionPluginBase::defaultConfiguration()
- DefaultSelection::defaultConfiguration in core/
lib/ Drupal/ Core/ Entity/ Plugin/ EntityReferenceSelection/ DefaultSelection.php - Gets default configuration for this plugin.
- SelectionPluginBase::setConfiguration in core/
lib/ Drupal/ Core/ Entity/ EntityReferenceSelection/ SelectionPluginBase.php - Sets the configuration for this plugin instance.
- TestSelection::defaultConfiguration in core/
tests/ Drupal/ Tests/ Core/ EntityReferenceSelection/ EntityReferenceSelectionUnitTest.php - Gets default configuration for this plugin.
- ViewsSelection::defaultConfiguration in core/
modules/ views/ src/ Plugin/ EntityReferenceSelection/ ViewsSelection.php - Gets default configuration for this plugin.
3 methods override SelectionPluginBase::defaultConfiguration()
- DefaultSelection::defaultConfiguration in core/
lib/ Drupal/ Core/ Entity/ Plugin/ EntityReferenceSelection/ DefaultSelection.php - Gets default configuration for this plugin.
- TestSelection::defaultConfiguration in core/
tests/ Drupal/ Tests/ Core/ EntityReferenceSelection/ EntityReferenceSelectionUnitTest.php - Gets default configuration for this plugin.
- ViewsSelection::defaultConfiguration in core/
modules/ views/ src/ Plugin/ EntityReferenceSelection/ ViewsSelection.php - Gets default configuration for this plugin.
File
- core/
lib/ Drupal/ Core/ Entity/ EntityReferenceSelection/ SelectionPluginBase.php, line 36
Class
- SelectionPluginBase
- Provides a base class for configurable selection handlers.
Namespace
Drupal\Core\Entity\EntityReferenceSelectionCode
public function defaultConfiguration() {
return [
'target_type' => NULL,
// @todo Remove this key in Drupal 9.0.x.
'handler' => $this
->getPluginId(),
'entity' => NULL,
];
}