function TransactionManagerBase::processRootCommit

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php \Drupal\Core\Database\Transaction\TransactionManagerBase::processRootCommit()

Processes the root transaction commit.

Throws

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

2 calls to TransactionManagerBase::processRootCommit()
TransactionManager::processRootCommit in core/modules/mysql/src/Driver/Database/mysql/TransactionManager.php
Processes the root transaction commit.
TransactionManagerBase::unpile in core/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php
Removes a Drupal transaction from the stack.
1 method overrides TransactionManagerBase::processRootCommit()
TransactionManager::processRootCommit in core/modules/mysql/src/Driver/Database/mysql/TransactionManager.php
Processes the root transaction commit.

File

core/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php, line 433

Class

TransactionManagerBase
The database transaction manager base class.

Namespace

Drupal\Core\Database\Transaction

Code

protected function processRootCommit() : void {
    $clientCommit = $this->commitClientTransaction();
    $this->processPostTransactionCallbacks();
    if (!$clientCommit) {
        throw new TransactionCommitFailedException();
    }
}

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