function 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\TransactionCode
protected function addStackItem(string $id, StackItem $item) : void {
$this->stack[$id] = $item;
}