You are here

public function PreferredSearchCoreService::isPreferredCoreAvailable in Acquia Connector 7.2

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

Class

PreferredSearchCoreService
Class PreferredSearchCoreService.

Namespace

Drupal\acquia_search

Code

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