You are here

public function AcquiaSearchSolrPreferredIndex::isPreferredIndexAvailable in Acquia Connector 7.3

Determines whether the expected index ID matches any available indexes IDs.

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

Return value

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

File

acquia_search/includes/AcquiaSearchSolrPreferredIndex.php, line 81

Class

AcquiaSearchSolrPreferredIndex
Class AcquiaSearchSolrPreferredIndex.

Code

public function isPreferredIndexAvailable() {
  $index = $this
    ->getPreferredIndex();
  return !empty($index['data']);
}