You are here

function search_api_solr_update_helper_get_field_type_configs 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_get_field_type_configs()
  2. 4.x search_api_solr.install \search_api_solr_update_helper_get_field_type_configs()

Gets all solr field type configs.

Return value

array All solr field type configs.

4 calls to search_api_solr_update_helper_get_field_type_configs()
search_api_solr_update_8201 in ./search_api_solr.install
Fix suggester field type.
search_api_solr_update_8202 in ./search_api_solr.install
Enable support for targeted domains for all backends and add custom codes.
search_api_solr_update_8207 in ./search_api_solr.install
Fix language undefined field types.
search_api_solr_update_8214 in ./search_api_solr.install
All pre-configured Solr field type configurations will be re-installed as delivered by the module! Please export your existing config before running the update and compare the changes manually, if you modified these configs by yourself!

File

./search_api_solr.install, line 217

Code

function search_api_solr_update_helper_get_field_type_configs() {
  $config_factory = \Drupal::configFactory();
  $field_type_configs = [];
  foreach ($config_factory
    ->listAll('search_api_solr.solr_field_type.') as $field_type_name) {
    $field_type_configs[$field_type_name] = $config_factory
      ->get($field_type_name)
      ->getRawData();
  }
  return $field_type_configs;
}