You are here

public function ConfigurableSearchPluginBase::setConfiguration in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/search/src/Plugin/ConfigurableSearchPluginBase.php \Drupal\search\Plugin\ConfigurableSearchPluginBase::setConfiguration()
  2. 10 core/modules/search/src/Plugin/ConfigurableSearchPluginBase.php \Drupal\search\Plugin\ConfigurableSearchPluginBase::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 ConfigurableSearchPluginBase::setConfiguration()
ConfigurableSearchPluginBase::__construct in core/modules/search/src/Plugin/ConfigurableSearchPluginBase.php
Constructs a \Drupal\Component\Plugin\PluginBase object.

File

core/modules/search/src/Plugin/ConfigurableSearchPluginBase.php, line 46

Class

ConfigurableSearchPluginBase
Provides a base implementation for a configurable Search plugin.

Namespace

Drupal\search\Plugin

Code

public function setConfiguration(array $configuration) {
  $this->configuration = NestedArray::mergeDeep($this
    ->defaultConfiguration(), $configuration);
}