public function SearchApiAcquiaSearchMultiService::configurationForm in Acquia Search Multiple Indexes 8
Same name and namespace in other branches
- 7 lib/Drupal/SearchApiSolr/SearchApiAcquiaSearchMultiService.php \SearchApiAcquiaSearchMultiService::configurationForm()
Overrides SearchApiAcquiaSearchService::configurationForm().
Adds configuration for switching the Solr server, either automatically based on the environment or manually.
See also
acquia_search_multi_subs_get_settings_form()
File
- src/
Plugin/ search_api/ backend/ SearchApiAcquiaSearchMultiService.php, line 64 - Contains SearchApiAcquiaSearchMultiService.
Class
- SearchApiAcquiaSearchMultiService
- Provides automatic environment switching for Acquia Search servers.
Code
public function configurationForm(array $form, array &$form_state) {
$form = parent::configurationForm($form, $form_state);
// Only allow overriding of the connection information with our form.
$form['modify_acquia_connection']['#access'] = FALSE;
$form['modify_acquia_connection']['#default_value'] = FALSE;
$form['host']['#access'] = FALSE;
$form['path']['#access'] = FALSE;
// Get our common settings form.
$configuration = isset($this->options['acquia_override_subscription']) ? $this->options['acquia_override_subscription'] : array();
acquia_search_multi_subs_get_settings_form($form, $form_state, $configuration);
return $form;
}