You are here

public function PreferredSearchCoreService::getPreferredCoreUrl in Acquia Connector 7.2

Same name and namespace in other branches
  1. 8 acquia_search/src/PreferredSearchCoreService.php \Drupal\acquia_search\PreferredSearchCoreService::getPreferredCoreUrl()
  2. 7.3 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 106

Class

PreferredSearchCoreService
Class PreferredSearchCoreService.

Namespace

Drupal\acquia_search

Code

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