function TransactionManagerBase::getConnectionTransactionState

Same name in other branches
  1. 10 core/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php \Drupal\Core\Database\Transaction\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
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
TransactionManagerBase::unpile in core/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php

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

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