You are here

function search_api_solr_update_helper_save_index_third_party_settings in Search API Solr 8.3

Same name and namespace in other branches
  1. 8.2 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: Id of the solr index.

array $third_party_settings:

bool $trusted_data:

3 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.
search_api_solr_update_8308 in ./search_api_solr.install
Configure multilingual features individually per index.

File

./search_api_solr.install, line 367
Install, update and uninstall functions for the Search API Solr module.

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);
}