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

Breadcrumb

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

function 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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal