You are here

public function PreferredSearchCore::__construct in Acquia Search 3.x

ExpectedCoreService constructor.

Parameters

string $acquia_identifier: E.g. 'WXYZ-12345'.

string $ah_env: E.g. 'dev', 'stage' or 'prod'.

string $sites_folder_name: E.g. 'default'.

string $ah_db_role: E.g. 'my_site_db'.

array $available_cores: E.g. [ [ 'balancer' => 'useast11-c4.acquia-search.com', 'core_id' => 'WXYZ-12345.dev.mysitedev', ], ].

File

src/PreferredSearchCore.php, line 76

Class

PreferredSearchCore
Return the Preferred search core for Solr.

Namespace

Drupal\acquia_search

Code

public function __construct($acquia_identifier, $ah_env, $sites_folder_name, $ah_db_role, array $available_cores) {
  $this->acquiaIdentifier = $acquia_identifier;
  $this->ahEnv = $ah_env;
  $this->sitesFolderName = $sites_folder_name;
  $this->ahDbRole = $ah_db_role;
  $this->availableCores = $available_cores;
}