public function Delete::execute

Same name in this branch

Executes the DELETE query.

Return value

The return value is dependent on the database connection.

Overrides Query::execute

1 call to Delete::execute()
1 method overrides Delete::execute()

File

drupal/core/lib/Drupal/Core/Database/Query/Delete.php, line 134
Definition of Drupal\Core\Database\Query\Delete

Class

Delete
General class for an abstracted DELETE operation.

Namespace

Drupal\Core\Database\Query

Code

public function execute() {
  $values = array();
  if (count($this->condition)) {
    $this->condition
      ->compile($this->connection, $this);
    $values = $this->condition
      ->arguments();
  }
  return $this->connection
    ->query((string) $this, $values, $this->queryOptions);
}