StringDatabaseStorage::dbDelete

protected StringDatabaseStorage::dbDelete($table, $keys)

Creates delete query.

Parameters

string $table: The table name.

array $keys: Array with object keys indexed by field name.

Return value

\Drupal\Core\Database\Query\Delete Returns a new Delete object for the injected database connection.

File

core/modules/locale/src/StringDatabaseStorage.php, line 525

Class

StringDatabaseStorage
Defines a class to store localized strings in the database.

Namespace

Drupal\locale

Code

protected function dbDelete($table, $keys) {
  $query = $this->connection->delete($table, $this->options);
  foreach ($keys as $field => $value) {
    $query->condition($field, $value);
  }
  return $query;
}
doc_Drupal
2016-10-29 09:45:06
Comments
Leave a Comment

Please login to continue.