function search_api_solr_update_8302 in Search API Solr 4.x
Same name and namespace in other branches
- 8.3 search_api_solr.install \search_api_solr_update_8302()
Re-install language-specific field types to enable the new spellcheckers.
File
- ./
search_api_solr.install, line 847 - Install, update and uninstall functions for the Search API Solr module.
Code
function search_api_solr_update_8302() {
$config_factory = \Drupal::configFactory();
foreach ($config_factory
->listAll('search_api_solr.solr_field_type.text_') as $field_type_name) {
if (preg_match('/^search_api_solr\\.solr_field_type\\.text_[a-z]{2}[_-]{1}/', $field_type_name)) {
$config_factory
->getEditable($field_type_name)
->delete();
}
}
}