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

Breadcrumb

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

function TransactionManagerBase::removeStackItem

Removes an item from the transaction stack.

Drivers should not override this method unless they also override the $stack property.

Parameters

string $id: The id of the transaction.

2 calls to TransactionManagerBase::removeStackItem()
TransactionManagerBase::unpile in core/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php
Removes a Drupal transaction from the stack.
TransactionManagerBase::voidStackItem in core/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php
Voids an item from the transaction stack.

File

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

Class

TransactionManagerBase
The database transaction manager base class.

Namespace

Drupal\Core\Database\Transaction

Code

protected function removeStackItem(string $id) : void {
    unset($this->stack[$id]);
}
RSS feed
Powered by Drupal