public function Connection::transactionDepth in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::transactionDepth()
Determines the current transaction depth.
Return value
int The current transaction depth.
1 call to Connection::transactionDepth()
- Connection::inTransaction in core/
lib/ Drupal/ Core/ Database/ Connection.php - Determines if there is an active transaction open.
File
- core/
lib/ Drupal/ Core/ Database/ Connection.php, line 1036 - Contains \Drupal\Core\Database\Connection.
Class
- Connection
- Base Database API class.
Namespace
Drupal\Core\DatabaseCode
public function transactionDepth() {
return count($this->transactionLayers);
}