Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TransactionManagerInterface.php

function 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;
RSS feed
Powered by Drupal