function TransactionManagerBase::removeStackItem

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php \Drupal\Core\Database\Transaction\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 168

Class

TransactionManagerBase
The database transaction manager base class.

Namespace

Drupal\Core\Database\Transaction

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.