function TransactionManagerBase::stack
Same name in other branches
- 10 core/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php \Drupal\Core\Database\Transaction\TransactionManagerBase::stack()
Returns the content of the transaction stack.
Drivers should not override this method unless they also override the $stack property.
phpcs:ignore Drupal.Commenting.FunctionComment.InvalidReturn
Return value
array<string,StackItem> The elements of the transaction stack.
7 calls to TransactionManagerBase::stack()
- TransactionManagerBase::commitAll in core/
lib/ Drupal/ Core/ Database/ Transaction/ TransactionManagerBase.php - Commits the entire transaction stack.
- TransactionManagerBase::dumpStackItemsAsString in core/
lib/ Drupal/ Core/ Database/ Transaction/ TransactionManagerBase.php - Produces a string representation of the stack items.
- TransactionManagerBase::has in core/
lib/ Drupal/ Core/ Database/ Transaction/ TransactionManagerBase.php - Checks if a named Drupal transaction is active.
- TransactionManagerBase::rollback in core/
lib/ Drupal/ Core/ Database/ Transaction/ TransactionManagerBase.php - Rolls back a Drupal transaction.
- TransactionManagerBase::stackDepth in core/
lib/ Drupal/ Core/ Database/ Transaction/ TransactionManagerBase.php - Returns the current depth of the transaction stack.
File
-
core/
lib/ Drupal/ Core/ Database/ Transaction/ TransactionManagerBase.php, line 146
Class
- TransactionManagerBase
- The database transaction manager base class.
Namespace
Drupal\Core\Database\TransactionCode
protected function stack() : array {
return $this->stack;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.