function SelectExtender::preExecute

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Database/Query/SelectExtender.php \Drupal\Core\Database\Query\SelectExtender::preExecute()
  2. 10 core/lib/Drupal/Core/Database/Query/SelectExtender.php \Drupal\Core\Database\Query\SelectExtender::preExecute()
  3. 11.x core/lib/Drupal/Core/Database/Query/SelectExtender.php \Drupal\Core\Database\Query\SelectExtender::preExecute()

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);
}

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