You are here

function acquia_search_is_acquia_server in Acquia Search 2.x

Determine whether given server config belongs to an Acquia search server.

Parameters

array $backend_config: An array of data obtained from \Drupal\search_api\Entity\Server->getBackendConfig()

Return value

bool TRUE if the provided config belongs to an Acquia Search server.

8 calls to acquia_search_is_acquia_server()
acquia_search_form_search_api_index_edit_form_alter in ./acquia_search.module
Implements hook_form_FORM_ID_alter().
acquia_search_form_search_api_server_edit_form_alter in ./acquia_search.module
Implements hook_form_FORM_ID_alter().
acquia_search_form_search_api_server_status_alter in ./acquia_search.module
Implements hook_form_FORM_ID_alter().
acquia_search_preprocess_search_api_index in ./acquia_search.module
Implements hook_preprocess_HOOK().
acquia_search_preprocess_search_api_server in ./acquia_search.module
Implements hook_preprocess_HOOK().

... See full list

File

./acquia_search.module, line 240
Integration between Acquia Drupal and Acquia's hosted solr search service.

Code

function acquia_search_is_acquia_server(array $backend_config) {
  return !empty($backend_config['connector']) && $backend_config['connector'] === 'solr_acquia_connector';
}