public function Connection::transactionDepth in Drupal 9
Same name and namespace in other branches
- 8 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 1480
Class
- Connection
- Base Database API class.
Namespace
Drupal\Core\DatabaseCode
public function transactionDepth() {
return count($this->transactionLayers);
}