You are here

public function Connection::supportsTransactions in Drupal 9

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

Determines if this driver supports transactions.

Return value

bool TRUE if this connection supports transactions, FALSE otherwise.

Deprecated

in drupal:9.1.0 and is removed from drupal:10.0.0. All database drivers must support transactions.

See also

https://www.drupal.org/node/2278745

File

core/lib/Drupal/Core/Database/Connection.php, line 1801

Class

Connection
Base Database API class.

Namespace

Drupal\Core\Database

Code

public function supportsTransactions() {
  @trigger_error(__METHOD__ . ' is deprecated in drupal:9.1.0 and is removed in drupal:10.0.0. All database drivers must support transactions. See https://www.drupal.org/node/2278745', E_USER_DEPRECATED);
  return TRUE;
}