function TransactionManagerBase::processPostTransactionCallbacks
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Database/Transaction/TransactionManagerBase.php \Drupal\Core\Database\Transaction\TransactionManagerBase::processPostTransactionCallbacks()
Processes the post-transaction callbacks.
3 calls to TransactionManagerBase::processPostTransactionCallbacks()
- 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::voidClientTransaction in core/
lib/ Drupal/ Core/ Database/ Transaction/ TransactionManagerBase.php - Voids the client connection.
File
-
core/
lib/ Drupal/ Core/ Database/ Transaction/ TransactionManagerBase.php, line 444
Class
- TransactionManagerBase
- The database transaction manager base class.
Namespace
Drupal\Core\Database\TransactionCode
protected function processPostTransactionCallbacks() : void {
if (!empty($this->postTransactionCallbacks)) {
$callbacks = $this->postTransactionCallbacks;
$this->postTransactionCallbacks = [];
foreach ($callbacks as $callback) {
call_user_func($callback, $this->getConnectionTransactionState() === ClientConnectionTransactionState::Committed || $this->getConnectionTransactionState() === ClientConnectionTransactionState::Voided);
}
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.