You are here

public function SearchApiAcquiaPreferredCore::isPreferredCoreAvailable in Acquia Search for Search API 7.2

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

The list of available cores 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

includes/v3/SearchApiAcquiaPreferredCore.php, line 81

Class

SearchApiAcquiaPreferredCore
Class SearchApiAcquiaPreferredCore.

Code

public function isPreferredCoreAvailable() {
  $core = $this
    ->getPreferredCore();
  return !empty($core['data']);
}