You are here

public function Connection::delete in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::delete()

Prepares and returns a DELETE query object.

Parameters

string $table: The table to use for the delete statement.

array $options: (optional) An array of options on the query.

Return value

\Drupal\Core\Database\Query\Delete A new Delete query object.

See also

\Drupal\Core\Database\Query\Delete

File

core/lib/Drupal/Core/Database/Connection.php, line 883
Contains \Drupal\Core\Database\Connection.

Class

Connection
Base Database API class.

Namespace

Drupal\Core\Database

Code

public function delete($table, array $options = array()) {
  $class = $this
    ->getDriverClass('Delete');
  return new $class($this, $table, $options);
}