function TransactionManagerInterface::purge

Purges a Drupal transaction from the manager.

This is only called by a Transaction object's ::__destruct() method and should only be called internally by a database driver.

@internal

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::purge()
TransactionManagerBase::purge in core/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php
Purges a Drupal transaction from the manager.

File

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

Class

TransactionManagerInterface
Interface for the database transaction manager classes.

Namespace

Drupal\Core\Database\Transaction

Code

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

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