You are here

public function SelectExtender::preExecute in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Database/Query/SelectExtender.php \Drupal\Core\Database\Query\SelectExtender::preExecute()

Generic preparation and validation for a SELECT query.

Return value

TRUE if the validation was successful, FALSE if not.

Overrides SelectInterface::preExecute

3 calls to SelectExtender::preExecute()
PagerSelectExtender::execute in core/lib/Drupal/Core/Database/Query/PagerSelectExtender.php
Override the execute method.
SearchQuery::preExecute in core/modules/search/src/SearchQuery.php
Generic preparation and validation for a SELECT query.
SelectExtender::execute in core/lib/Drupal/Core/Database/Query/SelectExtender.php
Runs the query against the database.
1 method overrides SelectExtender::preExecute()
SearchQuery::preExecute in core/modules/search/src/SearchQuery.php
Generic preparation and validation for a SELECT query.

File

core/lib/Drupal/Core/Database/Query/SelectExtender.php, line 309

Class

SelectExtender
The base extender class for Select queries.

Namespace

Drupal\Core\Database\Query

Code

public function preExecute(SelectInterface $query = NULL) {

  // If no query object is passed in, use $this.
  if (!isset($query)) {
    $query = $this;
  }
  return $this->query
    ->preExecute($query);
}