You are here

function search_api_solr_update_8328 in Search API Solr 8.3

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

Install Solr Cache Configs.

File

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

Code

function search_api_solr_update_8328() {

  // search_api_solr_update_helper_install_configs();
  foreach (search_api_solr_update_helper_get_backend_configs() as $server_name => $backend_config) {
    if (!isset($backend_config['environment'])) {
      $backend_config['environment'] = 'default';
      search_api_solr_update_helper_save_backend_config($server_name, $backend_config);
    }
  }
}