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); }
Please login to continue.