Skip to content

Commit

Permalink
Improve language selection
Browse files Browse the repository at this point in the history
  • Loading branch information
dbosen committed Aug 21, 2024
1 parent 062da1b commit 3a8cb2d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Drupal\thunder_gqls\Plugin\GraphQL\DataProducer;

use Drupal\Core\Language\LanguageInterface;
use Drupal\graphql\GraphQL\Execution\FieldContext;
use Drupal\search_api\Query\QueryInterface;
use Drupal\thunder_gqls\Wrappers\SearchApiResponse;
Expand Down Expand Up @@ -92,7 +93,7 @@ protected function resolve(
],
[
'field' => 'search_api_language',
'value' => $this->languageManager->getCurrentLanguage()->getId(),
'value' => $this->languageManager->getCurrentLanguage(LanguageInterface::TYPE_CONTENT)->getId(),
'operator' => '=',
],
];
Expand Down

0 comments on commit 3a8cb2d

Please sign in to comment.