function Connection::inTransaction
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\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 1534
Class
- Connection
- Base Database API class.
Namespace
Drupal\Core\DatabaseCode
public function inTransaction() {
return $this->transactionDepth() > 0;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.