You are here

public function SelectionPluginBase::defaultConfiguration 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::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides ConfigurableInterface::defaultConfiguration

3 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.
ViewsSelection::defaultConfiguration in core/modules/views/src/Plugin/EntityReferenceSelection/ViewsSelection.php
Gets default configuration for this plugin.
2 methods override SelectionPluginBase::defaultConfiguration()
DefaultSelection::defaultConfiguration in core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/DefaultSelection.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 35

Class

SelectionPluginBase
Provides a base class for configurable selection handlers.

Namespace

Drupal\Core\Entity\EntityReferenceSelection

Code

public function defaultConfiguration() {
  return [
    'target_type' => NULL,
    'entity' => NULL,
  ];
}