function Connection::supportsTransactions

Same name in other branches
  1. 8.9.x 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 1870

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.