function TransactionManagerBase::voidStackItem
Same name in other branches
- 10 core/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php \Drupal\Core\Database\Transaction\TransactionManagerBase::voidStackItem()
Voids 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.
3 calls to TransactionManagerBase::voidStackItem()
- TransactionManagerBase::rollback in core/
lib/ Drupal/ Core/ Database/ Transaction/ TransactionManagerBase.php - Rolls back a Drupal transaction.
- TransactionManagerBase::unpile in core/
lib/ Drupal/ Core/ Database/ Transaction/ TransactionManagerBase.php - Removes a Drupal transaction from the stack.
- TransactionManagerBase::voidClientTransaction in core/
lib/ Drupal/ Core/ Database/ Transaction/ TransactionManagerBase.php - Voids the client connection.
File
-
core/
lib/ Drupal/ Core/ Database/ Transaction/ TransactionManagerBase.php, line 201
Class
- TransactionManagerBase
- The database transaction manager base class.
Namespace
Drupal\Core\Database\TransactionCode
protected function voidStackItem(string $id) : void {
// The item should be removed from $stack and added to $voidedItems for
// later processing.
$this->voidedItems[$id] = $this->stack[$id];
$this->removeStackItem($id);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.