You are here

public function SearchApiSolrBackend::setConfiguration in Search API Solr 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/search_api/backend/SearchApiSolrBackend.php \Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend::setConfiguration()
  2. 8 src/Plugin/search_api/backend/SearchApiSolrBackend.php \Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend::setConfiguration()
  3. 4.x src/Plugin/search_api/backend/SearchApiSolrBackend.php \Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend::setConfiguration()

Sets the configuration for this plugin instance.

Parameters

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

Overrides BackendPluginBase::setConfiguration

File

src/Plugin/search_api/backend/SearchApiSolrBackend.php, line 2776

Class

SearchApiSolrBackend
Apache Solr backend for search api.

Namespace

Drupal\search_api_solr\Plugin\search_api\backend

Code

public function setConfiguration(array $configuration) {
  parent::setConfiguration($configuration);

  // Update the configuration of the Solr connector as well by replacing it by
  // a new instance with the latest configuration.
  $this->solrConnector = NULL;
}