You are here

public static function Runtime::isAcquiaServer in Acquia Search 3.x

Determine whether given server belongs to an Acquia search server.

Parameters

\Drupal\search_api\Entity\Server $server: A search server configuration entity.

Return value

bool TRUE if given server config belongs to an Acquia search server.

10 calls to Runtime::isAcquiaServer()
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
Theme override function for Search API server status page.

... See full list

File

src/Helper/Runtime.php, line 151

Class

Runtime
Class Runtime.

Namespace

Drupal\acquia_search\Helper

Code

public static function isAcquiaServer(Server $server) : bool {
  $backend_config = $server
    ->getBackendConfig();
  return !empty($backend_config['connector']) && $backend_config['connector'] === 'solr_acquia_connector';
}