function TransactionManagerBase::setConnectionTransactionState

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

Sets 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.

Parameters

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

6 calls to TransactionManagerBase::setConnectionTransactionState()
TransactionManagerBase::commit in core/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php
Commits a Drupal transaction.
TransactionManagerBase::processRootCommit in core/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php
Processes the root transaction commit.
TransactionManagerBase::processRootRollback in core/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php
Processes the root transaction rollback.
TransactionManagerBase::push in core/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php
Pushes a new Drupal transaction on the stack.
TransactionManagerBase::rollback in core/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php
Rolls back a Drupal transaction.

... See full list

File

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

Class

TransactionManagerBase
The database transaction manager base class.

Namespace

Drupal\Core\Database\Transaction

Code

protected function setConnectionTransactionState(ClientConnectionTransactionState $state) : void {
  $this->connectionTransactionState = $state;
}

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