You are here

protected function SearchApiSolrAcquiaConnector::setOverriddenCore in Acquia Search 2.x

Sets the current connection overrides to the given Solr config.

Parameters

array $configuration: Solr connection configuration.

Return value

array Updated Solr connection configuration.

1 call to SearchApiSolrAcquiaConnector::setOverriddenCore()
SearchApiSolrAcquiaConnector::defaultConfiguration in src/Plugin/SolrConnector/SearchApiSolrAcquiaConnector.php
Gets default configuration for this plugin.

File

src/Plugin/SolrConnector/SearchApiSolrAcquiaConnector.php, line 120

Class

SearchApiSolrAcquiaConnector
Acquia Search Plugin for Search API Solr.

Namespace

Drupal\acquia_search\Plugin\SolrConnector

Code

protected function setOverriddenCore(array $configuration) {
  $override = \Drupal::config('acquia_search.settings')
    ->get('connection_override');
  $configuration['overridden_by_acquia_search'] = ACQUIA_SEARCH_EXISTING_OVERRIDE;
  $configuration['path'] = '/';
  $override['core'] = $override['index_id'];
  return array_merge($configuration, $override);
}