public function SelectExtender::execute

2 methods override SelectExtender::execute()
PagerSelectExtender::execute in drupal/core/lib/Drupal/Core/Database/Query/PagerSelectExtender.php
Override the execute method.
SearchQuery::execute in drupal/core/modules/search/lib/Drupal/search/SearchQuery.php
Executes the search.

File

drupal/core/lib/Drupal/Core/Database/Query/SelectExtender.php, line 191
Definition of Drupal\Core\Database\Query\SelectExtender

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