function Connection::transactionManager

Same name and namespace in other branches
  1. 10 core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::transactionManager()

Returns the transaction manager.

Return value

\Drupal\Core\Database\Transaction\TransactionManagerInterface The transaction manager, or FALSE if not available.

Throws

\LogicException If the transaction manager is undefined or unavailable.

1 call to Connection::transactionManager()
Connection::commitAll in core/lib/Drupal/Core/Database/Connection.php
Commits all the open transactions.

File

core/lib/Drupal/Core/Database/Connection.php, line 1093

Class

Connection
Base Database API class.

Namespace

Drupal\Core\Database

Code

public function transactionManager() : TransactionManagerInterface {
    if (!isset($this->transactionManager)) {
        $this->transactionManager = $this->driverTransactionManager();
    }
    return $this->transactionManager;
}

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