You are here

protected function DidYouMeanSpellCheck::getCurrentQuery in Search API Spellcheck 8.3

Gets the current query parameters.

Return value

array Key value of parameters.

1 call to DidYouMeanSpellCheck::getCurrentQuery()
DidYouMeanSpellCheck::getSuggestionLink in src/Plugin/views/area/DidYouMeanSpellCheck.php
Gets the suggestion link.

File

src/Plugin/views/area/DidYouMeanSpellCheck.php, line 132

Class

DidYouMeanSpellCheck
Provides an area for messages.

Namespace

Drupal\search_api_spellcheck\Plugin\views\area

Code

protected function getCurrentQuery() {
  if (NULL === $this->currentQuery) {
    $this->currentQuery = \Drupal::request()->query
      ->all();
  }
  return $this->currentQuery;
}