function SelectionPluginBase::setConfiguration

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

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);
}

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