Example #1
0
 /**
  * Returns search targets for given language settings
  *
  * @param array $languageSettings
  *
  * @return string
  */
 protected function getSearchTargets($languageSettings)
 {
     $shards = array();
     $endpoints = $this->endpointResolver->getSearchTargets($languageSettings);
     if (!empty($endpoints)) {
         foreach ($endpoints as $endpoint) {
             $shards[] = $this->endpointRegistry->getEndpoint($endpoint)->getIdentifier();
         }
     }
     return implode(",", $shards);
 }