function TransactionManagerBase::addStackItem

Same name in other branches
  1. 10 core/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php \Drupal\Core\Database\Transaction\TransactionManagerBase::addStackItem()

Adds an item to the transaction stack.

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

Parameters

string $id: The id of the transaction.

\Drupal\Core\Database\Transaction\StackItem $item: The stack item.

1 call to TransactionManagerBase::addStackItem()
TransactionManagerBase::push in core/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php
Pushes a new Drupal transaction on the stack.

File

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

Class

TransactionManagerBase
The database transaction manager base class.

Namespace

Drupal\Core\Database\Transaction

Code

protected function addStackItem(string $id, StackItem $item) : void {
    $this->stack[$id] = $item;
}

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