You are here

public function Query::getLanguages in Search API 8

Retrieves the languages that will be searched by this query.

Return value

string[]|null The language codes of languages that will be searched by this query, or NULL if there shouldn't be any restriction on the language.

Overrides QueryInterface::getLanguages

File

src/Query/Query.php, line 402

Class

Query
Provides a standard implementation for a Search API query.

Namespace

Drupal\search_api\Query

Code

public function getLanguages() {
  return $this->languages;
}