function SelectExtender::execute

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

File

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

Class

SelectExtender
The base extender class for Select queries.

Namespace

Drupal\Core\Database\Query

Code

public function execute() {
  // By calling preExecute() here, we force it to preprocess the extender
  // object rather than just the base query object.  That means
  // hook_query_alter() gets access to the extended object.
  if (!$this->preExecute($this)) {
    return NULL;
  }
  return $this->query
    ->execute();
}

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