public function SearchApiQuery::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
See also
\Drupal\search_api\Query\QueryInterface::setLanguages()
File
- src/
Plugin/ views/ query/ SearchApiQuery.php, line 908
Class
- SearchApiQuery
- Defines a Views query class for searching on Search API indexes.
Namespace
Drupal\search_api\Plugin\views\queryCode
public function setLanguages(array $languages = NULL) {
if (!$this
->shouldAbort()) {
$this->query
->setLanguages($languages);
}
return $this;
}