You are here

public function SearchApiQuery::getSearchApiQuery in Search API 8

Returns the Search API query object used by this Views query.

Return value

\Drupal\search_api\Query\QueryInterface|null The search query object used internally by this plugin, if any has been successfully created. NULL otherwise.

3 calls to SearchApiQuery::getSearchApiQuery()
SearchApiQuery::getCacheContexts in src/Plugin/views/query/SearchApiQuery.php
The cache contexts associated with this object.
SearchApiQuery::getCacheMaxAge in src/Plugin/views/query/SearchApiQuery.php
The maximum age for which this object may be cached.
SearchApiQuery::getCacheTags in src/Plugin/views/query/SearchApiQuery.php
The cache tags associated with this object.

File

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

Class

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

Namespace

Drupal\search_api\Plugin\views\query

Code

public function getSearchApiQuery() {
  return $this->query;
}