You are here

function search_api_solr_post_update_8319 in Search API Solr 4.x

Same name and namespace in other branches
  1. 8.3 search_api_solr.post_update.php \search_api_solr_post_update_8319()

Install new Solr Field Types and uninstall search_api_solr_multilingual.

File

./search_api_solr.post_update.php, line 43

Code

function search_api_solr_post_update_8319() {
  if (\Drupal::moduleHandler()
    ->moduleExists('search_api_solr_multilingual')) {

    /** @var \Drupal\Core\Extension\ModuleInstallerInterface $module_installer */
    $module_installer = \Drupal::service('module_installer');
    $module_installer
      ->uninstall([
      'search_api_solr_multilingual',
    ]);
  }

  // module_load_include is required in case that no update_hooks were run
  // before.
  module_load_include('install', 'search_api_solr');
  search_api_solr_update_helper_install_configs();
}