W3cubDocs

/Drupal 8

public function Connection::supportsTransactions

public Connection::supportsTransactions()

Determines if this driver supports transactions.

Return value

bool TRUE if this connection supports transactions, FALSE otherwise.

File

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

Class

Connection
Base Database API class.

Namespace

Drupal\Core\Database

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Database!Connection.php/function/Connection::supportsTransactions/8.1.x