function StubTransactionManager::commitClientTransaction

Commits a client transaction.

Return value

bool Returns TRUE on success.

Overrides TransactionManagerBase::commitClientTransaction

File

core/tests/Drupal/Tests/Core/Database/Stub/StubTransactionManager.php, line 52

Class

StubTransactionManager
A stub of the TransactionManagerBase class for testing purposes.

Namespace

Drupal\Tests\Core\Database\Stub

Code

protected function commitClientTransaction() : bool {
  return $this->success ? TRUE : throw new TransactionCommitFailedException('Failed commit of transaction');
}

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