|
@@ -336,6 +336,10 @@ class EdlpSearchController extends ControllerBase {
|
|
|
|
|
|
// TODO: locuteurs
|
|
|
|
|
|
+ $language = \Drupal::languageManager()->getCurrentLanguage()->getId();
|
|
|
+ // $language = \Drupal::languageManager()->getCurrentLanguage()->getName();
|
|
|
+ $query->addCondition('search_api_language', $language);
|
|
|
+
|
|
|
$result = $query->execute();
|
|
|
$items = $result->getResultItems();
|
|
|
// dpm($items);
|