public function SelectExtender::execute in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Database/Query/SelectExtender.php \Drupal\Core\Database\Query\SelectExtender::execute()
Runs the query against the database.
Return value
\Drupal\Core\Database\StatementInterface|null A prepared statement, or NULL if the query is not valid.
Overrides SelectInterface::execute
2 methods override SelectExtender::execute()
- PagerSelectExtender::execute in core/
lib/ Drupal/ Core/ Database/ Query/ PagerSelectExtender.php - Override the execute method.
- SearchQuery::execute in core/
modules/ search/ src/ SearchQuery.php - Executes the search.
File
- core/
lib/ Drupal/ Core/ Database/ Query/ SelectExtender.php, line 314 - Contains \Drupal\Core\Database\Query\SelectExtender.
Class
- SelectExtender
- The base extender class for Select queries.
Namespace
Drupal\Core\Database\QueryCode
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();
}