You are here

public function SearchApiQuery::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.

See also

\Drupal\search_api\Query\QueryInterface::getLanguages()

File

src/Plugin/views/query/SearchApiQuery.php, line 890

Class

SearchApiQuery
Defines a Views query class for searching on Search API indexes.

Namespace

Drupal\search_api\Plugin\views\query

Code

public function getLanguages() {
  if (!$this
    ->shouldAbort()) {
    return $this->query
      ->getLanguages();
  }
  return NULL;
}