Connection::inTransaction

public Connection::inTransaction()

Determines if there is an active transaction open.

Return value

bool TRUE if we're currently in a transaction, FALSE otherwise.

File

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

Class

Connection
Base Database API class.

Namespace

Drupal\Core\Database

Code

public function inTransaction() {
  return ($this->transactionDepth() > 0);
}
doc_Drupal
2016-10-29 08:55:51
Comments
Leave a Comment

Please login to continue.