You are here

public function SelectionPluginBase::setConfiguration 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::setConfiguration()
  2. 9 core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionPluginBase.php \Drupal\Core\Entity\EntityReferenceSelection\SelectionPluginBase::setConfiguration()

Sets the configuration for this plugin instance.

Parameters

array $configuration: An associative array containing the plugin's configuration.

Overrides ConfigurableInterface::setConfiguration

1 call to SelectionPluginBase::setConfiguration()
SelectionPluginBase::__construct in core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionPluginBase.php
Constructs a new selection object.

File

core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionPluginBase.php, line 52

Class

SelectionPluginBase
Provides a base class for configurable selection handlers.

Namespace

Drupal\Core\Entity\EntityReferenceSelection

Code

public function setConfiguration(array $configuration) {

  // Merge in defaults.
  $this->configuration = NestedArray::mergeDeep($this
    ->defaultConfiguration(), $configuration);
}