You are here

public function SearchApiCachePluginTrait::setQueryHelper in Search API 8

Sets the query helper.

Parameters

\Drupal\search_api\Utility\QueryHelperInterface $query_helper: The new query helper.

Return value

$this

File

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

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 setQueryHelper(QueryHelperInterface $query_helper) {
  $this->queryHelper = $query_helper;
  return $this;
}