function TransactionManagerBase::setConnectionTransactionState
Same name in other branches
- 11.x 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.
8 calls to TransactionManagerBase::setConnectionTransactionState()
- TransactionManager::commitClientTransaction in core/
modules/ sqlite/ src/ Driver/ Database/ sqlite/ TransactionManager.php - Commits a client transaction.
- TransactionManager::commitClientTransaction in core/
modules/ mysql/ src/ Driver/ Database/ mysql/ TransactionManager.php - Commits a client transaction.
- TransactionManager::commitClientTransaction in core/
modules/ pgsql/ src/ Driver/ Database/ pgsql/ TransactionManager.php - Commits a client transaction.
- TransactionManager::rollbackClientTransaction in core/
modules/ sqlite/ src/ Driver/ Database/ sqlite/ TransactionManager.php - Rolls back a client transaction.
- TransactionManager::rollbackClientTransaction in core/
modules/ mysql/ src/ Driver/ Database/ mysql/ TransactionManager.php - Rolls back a client transaction.
File
-
core/
lib/ Drupal/ Core/ Database/ Transaction/ TransactionManagerBase.php, line 439
Class
- TransactionManagerBase
- The database transaction manager base class.
Namespace
Drupal\Core\Database\TransactionCode
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.