You are here

public function PreferredSearchCoreService::isPreferredCoreAvailable in Acquia Connector 8

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

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

acquia_search/src/PreferredSearchCoreService.php, line 113

Class

PreferredSearchCoreService
Serivce to check for preferred search core.

Namespace

Drupal\acquia_search

Code

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