Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TransactionManagerBase.php

function 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.

... See full list

File

core/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php, line 146

Class

TransactionManagerBase
The database transaction manager base class.

Namespace

Drupal\Core\Database\Transaction

Code

protected function stack() : array {
    return $this->stack;
}
RSS feed
Powered by Drupal