You are here

public function SearchApiAcquiaSearchMultiService::getExtraInformation in Acquia Search Multiple Indexes 8

Same name and namespace in other branches
  1. 7 lib/Drupal/SearchApiSolr/SearchApiAcquiaSearchMultiService.php \SearchApiAcquiaSearchMultiService::getExtraInformation()

File

src/Plugin/search_api/backend/SearchApiAcquiaSearchMultiService.php, line 109
Contains SearchApiAcquiaSearchMultiService.

Class

SearchApiAcquiaSearchMultiService
Provides automatic environment switching for Acquia Search servers.

Code

public function getExtraInformation() {
  $auto_detection = !isset($this->options['acquia_override_subscription']['acquia_override_auto_switch']) || $this->options['acquia_override_subscription']['acquia_override_auto_switch'];
  $auto_detection_state = $auto_detection ? t('enabled') : t('disabled');
  $info[] = array(
    'label' => t('Acquia Search Auto Detection'),
    'info' => t('Auto detection of your environment is <strong>@state</strong>.', array(
      '@state' => $auto_detection_state,
    )),
  );
  $this
    ->setConnectionOptions();
  $info = array_merge($info, parent::getExtraInformation());
  return $info;
}