You are here

function search_api_solr_update_helper_save_index_third_party_settings in Search API Solr 8.2

Same name and namespace in other branches
  1. 8.3 search_api_solr.install \search_api_solr_update_helper_save_index_third_party_settings()
  2. 4.x search_api_solr.install \search_api_solr_update_helper_save_index_third_party_settings()

Saves a modified backend config for a given Solr server.

Parameters

string $index_id:

array $third_party_settings:

bool $trusted_data:

2 calls to search_api_solr_update_helper_save_index_third_party_settings()
search_api_solr_update_8212 in ./search_api_solr.install
Configure highlighter individually per index and remove global config.
search_api_solr_update_8213 in ./search_api_solr.install
Configure index prefixes individually per server and index.

File

./search_api_solr.install, line 205

Code

function search_api_solr_update_helper_save_index_third_party_settings($index_id, array $third_party_settings, $trusted_data = TRUE) {
  \Drupal::configFactory()
    ->getEditable($index_id)
    ->set('third_party_settings.search_api_solr', $third_party_settings)
    ->save($trusted_data);
}