function TransactionManagerBase::stackDepth
Same name in other branches
- 10 core/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php \Drupal\Core\Database\Transaction\TransactionManagerBase::stackDepth()
Returns the current depth of the transaction stack.
@todo consider making this function protected.
@internal
Return value
int The current depth of the transaction stack.
4 calls to TransactionManagerBase::stackDepth()
- TransactionManagerBase::inTransaction in core/
lib/ Drupal/ Core/ Database/ Transaction/ TransactionManagerBase.php - TransactionManagerBase::push in core/
lib/ Drupal/ Core/ Database/ Transaction/ TransactionManagerBase.php - TransactionManagerBase::rollback in core/
lib/ Drupal/ Core/ Database/ Transaction/ TransactionManagerBase.php - TransactionManagerBase::unpile in core/
lib/ Drupal/ Core/ Database/ Transaction/ TransactionManagerBase.php
File
-
core/
lib/ Drupal/ Core/ Database/ Transaction/ TransactionManagerBase.php, line 132
Class
- TransactionManagerBase
- The database transaction manager base class.
Namespace
Drupal\Core\Database\TransactionCode
public function stackDepth() : int {
return count($this->stack());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.