function TransactionManagerInterface::unpile

Same name in other branches
  1. 11.x core/lib/Drupal/Core/Database/Transaction/TransactionManagerInterface.php \Drupal\Core\Database\Transaction\TransactionManagerInterface::unpile()

Removes a Drupal transaction from the stack.

The unpiled item does not necessarily need to be the last on the stack. This method should only be called by a Transaction object going out of scope.

This method should only be called internally by a database driver.

Parameters

string $name: The name of the transaction.

string $id: The id of the transaction.

Throws

\Drupal\Core\Database\TransactionOutOfOrderException If a Drupal Transaction with the specified name does not exist.

\Drupal\Core\Database\TransactionCommitFailedException If the commit of the root transaction failed.

1 method overrides TransactionManagerInterface::unpile()
TransactionManagerBase::unpile in core/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php
Removes a Drupal transaction from the stack.

File

core/lib/Drupal/Core/Database/Transaction/TransactionManagerInterface.php, line 71

Class

TransactionManagerInterface
Interface for the database transaction manager classes.

Namespace

Drupal\Core\Database\Transaction

Code

public function unpile(string $name, string $id) : void;

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