function StubTransactionManager::rollbackClientTransaction

Rolls back a client transaction.

Return value

bool Returns TRUE on success.

Overrides TransactionManagerBase::rollbackClientTransaction

File

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

Class

StubTransactionManager
A stub of the TransactionManagerBase class for testing purposes.

Namespace

Drupal\Tests\Core\Database\Stub

Code

protected function rollbackClientTransaction() : bool {
  return $this->success ? TRUE : throw new TransactionException('Failed rollback of transaction');
}

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