public function SearchApiQuery::getParseMode in Search API 8
Retrieves the parse mode.
Return value
\Drupal\search_api\ParseMode\ParseModeInterface The parse mode.
See also
\Drupal\search_api\Query\QueryInterface::getParseMode()
File
- src/
Plugin/ views/ query/ SearchApiQuery.php, line 857
Class
- SearchApiQuery
- Defines a Views query class for searching on Search API indexes.
Namespace
Drupal\search_api\Plugin\views\queryCode
public function getParseMode() {
if (!$this
->shouldAbort()) {
return $this->query
->getParseMode();
}
return new Terms([], 'terms', []);
}