You are here

public function PreferredSearchCoreService::getPreferredCoreUrl in Acquia Connector 8

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

Returns URL for the preferred search core.

Return value

string URL string, e.g. http://useast1-c1.acquia-search.com/solr/WXYZ-12345.dev.mysitedev

File

acquia_search/src/PreferredSearchCoreService.php, line 197

Class

PreferredSearchCoreService
Serivce to check for preferred search core.

Namespace

Drupal\acquia_search

Code

public function getPreferredCoreUrl() {
  $core = $this
    ->getPreferredCore();
  return 'http://' . $core['balancer'] . '/solr/' . $core['core_id'];
}