Connection::transactionDepth

public Connection::transactionDepth()

Determines the current transaction depth.

Return value

int The current transaction depth.

File

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

Class

Connection
Base Database API class.

Namespace

Drupal\Core\Database

Code

public function transactionDepth() {
  return count($this->transactionLayers);
}
doc_Drupal
2016-10-29 08:56:03
Comments
Leave a Comment

Please login to continue.