You are here

public function QueryInterface::setLanguages in Search API 8

Sets the languages that should be searched by this query.

Parameters

string[]|null $languages: The language codes to search for, or NULL to not restrict the query to specific languages.

Return value

$this

1 method overrides QueryInterface::setLanguages()
Query::setLanguages in src/Query/Query.php
Sets the languages that should be searched by this query.

File

src/Query/QueryInterface.php, line 151

Class

QueryInterface
Represents a search query on a Search API index.

Namespace

Drupal\search_api\Query

Code

public function setLanguages(array $languages = NULL);