You are here

public function PreferredSearchCoreService::getPreferredCoreId in Acquia Connector 8

Same name and namespace in other branches
  1. 7.3 acquia_search/src/PreferredSearchCoreService.php \Drupal\acquia_search\PreferredSearchCoreService::getPreferredCoreId()
  2. 7.2 acquia_search/src/PreferredSearchCoreService.php \Drupal\acquia_search\PreferredSearchCoreService::getPreferredCoreId()

Returns expected core ID based on the current site configs.

Return value

string Core ID.

File

acquia_search/src/PreferredSearchCoreService.php, line 83

Class

PreferredSearchCoreService
Serivce to check for preferred search core.

Namespace

Drupal\acquia_search

Code

public function getPreferredCoreId() {
  $core = $this
    ->getPreferredCore();
  return $core['core_id'];
}