You are here

public function BackendPluginBase::setConfiguration in Search API 8

Sets the configuration for this plugin instance.

Parameters

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

Overrides ConfigurablePluginBase::setConfiguration

File

src/Backend/BackendPluginBase.php, line 151

Class

BackendPluginBase
Defines a base class for backend plugins.

Namespace

Drupal\search_api\Backend

Code

public function setConfiguration(array $configuration) {
  parent::setConfiguration($configuration);
  if ($this->server && $this->server
    ->getBackendConfig() !== $configuration) {
    $this->server
      ->setBackendConfig($configuration);
  }
}