protected function SearchSettingsForm::getModuleOptions

Returns names of available search modules.

Return value

array An array of the names of enabled modules that call hook_search_info sorted into alphabetical order.

1 call to SearchSettingsForm::getModuleOptions()
SearchSettingsForm::buildForm in drupal/core/modules/search/lib/Drupal/search/Form/SearchSettingsForm.php
Implements \Drupal\Core\Form\FormInterface::buildForm().

File

drupal/core/modules/search/lib/Drupal/search/Form/SearchSettingsForm.php, line 80
Contains \Drupal\search\Form\SearchSettingsForm.

Class

SearchSettingsForm
Configure search settings for this site.

Namespace

Drupal\search\Form

Code

protected function getModuleOptions() {
  $search_info = search_get_info(TRUE);
  $names = system_get_module_info('name');
  $names = array_intersect_key($names, $search_info);
  asort($names, SORT_STRING);
  return $names;
}