You are here

public function SearchApiCachePluginTrait::getQueryHelper in Search API 8

Retrieves the query helper.

Return value

\Drupal\search_api\Utility\QueryHelperInterface The query helper.

File

src/Plugin/views/cache/SearchApiCachePluginTrait.php, line 91

Class

SearchApiCachePluginTrait
Provides a trait to use in Views cache plugins for Search API queries.

Namespace

Drupal\search_api\Plugin\views\cache

Code

public function getQueryHelper() {
  return $this->queryHelper ?: \Drupal::service('search_api.query_helper');
}