public function SearchSubscriber::getSearchIndexKeys in Acquia Search 3.x
Fetches the Acquia Search v3 index keys.
Return value
array|null Search v3 index keys.
1 call to SearchSubscriber::getSearchIndexKeys()
- SearchSubscriber::getDerivedKey in src/
EventSubscriber/ SearchSubscriber.php - Get the derived key.
File
- src/
EventSubscriber/ SearchSubscriber.php, line 305
Class
- SearchSubscriber
- Class SearchSubscriber.
Namespace
Drupal\acquia_search\EventSubscriberCode
public function getSearchIndexKeys() : ?array {
$core_service = Runtime::getPreferredSearchCoreService();
// Preferred core isn't available - you have to configure it using settings
// described in the README.txt.
if (!$core_service
->isPreferredCoreAvailable()) {
return NULL;
}
return $core_service
->getPreferredCore()['data'];
}