function SearchQuery::preExecute

Same name in other branches
  1. 9 core/modules/search/src/SearchQuery.php \Drupal\search\SearchQuery::preExecute()
  2. 8.9.x core/modules/search/src/SearchQuery.php \Drupal\search\SearchQuery::preExecute()
  3. 10 core/modules/search/src/SearchQuery.php \Drupal\search\SearchQuery::preExecute()

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 465

Class

SearchQuery
Search query extender and helper functions.

Namespace

Drupal\search

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.