function SelectionPluginBase::defaultConfiguration

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionPluginBase.php \Drupal\Core\Entity\EntityReferenceSelection\SelectionPluginBase::defaultConfiguration()
  2. 10 core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionPluginBase.php \Drupal\Core\Entity\EntityReferenceSelection\SelectionPluginBase::defaultConfiguration()
  3. 11.x core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionPluginBase.php \Drupal\Core\Entity\EntityReferenceSelection\SelectionPluginBase::defaultConfiguration()

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.