You are here

public function SearchQuery::preExecute in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/search/src/SearchQuery.php \Drupal\search\SearchQuery::preExecute()

Generic preparation and validation for a SELECT query.

Return value

TRUE if the validation was successful, FALSE if not.

Overrides SelectExtender::preExecute

1 call to SearchQuery::preExecute()
SearchQuery::execute in core/modules/search/src/SearchQuery.php
Executes the search.

File

core/modules/search/src/SearchQuery.php, line 468
Contains \Drupal\search\SearchQuery.

Class

SearchQuery
Performs a query on the full-text search index for a word or words.

Namespace

Drupal\search

Code

public function preExecute(SelectInterface $query = NULL) {
  if (!$this->executedPrepare) {
    $this
      ->prepareAndNormalize();
  }
  if (!$this->normalize) {
    return FALSE;
  }
  return parent::preExecute($query);
}