You are here

public function SpellCheck::preQuery in Search API Spellcheck 8

Run before the view is built.

This gives all the handlers some time to set up before any handler has been fully run.

Overrides HandlerBase::preQuery

File

src/Plugin/views/area/SpellCheck.php, line 73

Class

SpellCheck
Provides an area for messages.

Namespace

Drupal\search_api_spellcheck\Plugin\views\area

Code

public function preQuery() {

  /** @var \Drupal\search_api\Plugin\views\query\SearchApiQuery $query */
  $query = $this->query;
  $query
    ->setOption('search_api_spellcheck', TRUE);
  parent::preQuery();
}