You are here

public function SaveSearch::getQueryHelper in Search API Saved Searches 8

Retrieves the query helper.

Return value

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

1 call to SaveSearch::getQueryHelper()
SaveSearch::build in src/Plugin/Block/SaveSearch.php
Builds and returns the renderable array for this block plugin.

File

src/Plugin/Block/SaveSearch.php, line 123

Class

SaveSearch
Displays the "Save search" form in a block.

Namespace

Drupal\search_api_saved_searches\Plugin\Block

Code

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