public function SearchQuery::preExecute in Drupal 8
Same name and namespace in other branches
- 9 core/modules/search/src/SearchQuery.php \Drupal\search\SearchQuery::preExecute()
- 10 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 463
Class
- SearchQuery
- Search query extender and helper functions.
Namespace
Drupal\searchCode
public function preExecute(SelectInterface $query = NULL) {
if (!$this->executedPrepare) {
$this
->prepareAndNormalize();
}
if (!$this->normalize) {
return FALSE;
}
return parent::preExecute($query);
}