You are here

public function Connection::supportsTransactions in Drupal 8

Same name and namespace in other branches
  1. 9 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.

3 calls to Connection::supportsTransactions()
Connection::popTransaction in core/lib/Drupal/Core/Database/Connection.php
Decreases the depth of transaction nesting.
Connection::pushTransaction in core/lib/Drupal/Core/Database/Connection.php
Increases the depth of transaction nesting.
Connection::rollBack in core/lib/Drupal/Core/Database/Connection.php
Rolls back the transaction entirely or to a named savepoint.

File

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

Class

Connection
Base Database API class.

Namespace

Drupal\Core\Database

Code

public function supportsTransactions() {
  return $this->transactionSupport;
}