You are here

public function SelectionPluginBase::defaultConfiguration in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionPluginBase.php \Drupal\Core\Entity\EntityReferenceSelection\SelectionPluginBase::defaultConfiguration()
  2. 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

1 call to SelectionPluginBase::defaultConfiguration()
SelectionPluginBase::setConfiguration in core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionPluginBase.php
Sets the configuration for this plugin instance.

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,
  ];
}