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

Breadcrumb

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

function TransactionManagerBase::getConnectionTransactionState

Gets the state of the client connection transaction.

Note that this is a proxy of the actual state on the database server, best determined through calls to methods in this class. The actual state on the database server could be different.

Drivers should not override this method unless they also override the $connectionTransactionState property.

Return value

\Drupal\Core\Database\Transaction\ClientConnectionTransactionState The state of the client connection.

4 calls to TransactionManagerBase::getConnectionTransactionState()
TransactionManagerBase::inTransaction in core/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php
Determines if there is an active transaction open.
TransactionManagerBase::processPostTransactionCallbacks in core/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php
Processes the post-transaction callbacks.
TransactionManagerBase::rollback in core/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php
Rolls back a Drupal transaction.
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/TransactionManagerBase.php, line 441

Class

TransactionManagerBase
The database transaction manager base class.

Namespace

Drupal\Core\Database\Transaction

Code

protected function getConnectionTransactionState() : ClientConnectionTransactionState {
    return $this->connectionTransactionState;
}
RSS feed
Powered by Drupal