You are here

public function PreferredSearchCoreService::isPreferredCoreAvailable in Acquia Search 2.x

Determines whether the expected core ID matches any available core IDs.

The list of available core IDs is set by Acquia and comes within the Acquia Subscription information.

Return value

bool True if the expected core ID available to use with Acquia.

File

src/PreferredSearchCoreService.php, line 123

Class

PreferredSearchCoreService
Serivce to check for preferred search core.

Namespace

Drupal\acquia_search

Code

public function isPreferredCoreAvailable() {
  return (bool) $this
    ->getPreferredCore();
}