function StubTransactionManager::rollbackClientSavepoint

Rolls back to a savepoint on the client transaction.

This is a generic implementation. Drivers should override this method to use a method specific for their client connection.

Parameters

string $name: The name of the savepoint.

Return value

bool Returns TRUE on success.

Overrides TransactionManagerBase::rollbackClientSavepoint

File

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

Class

StubTransactionManager
A stub of the TransactionManagerBase class for testing purposes.

Namespace

Drupal\Tests\Core\Database\Stub

Code

protected function rollbackClientSavepoint(string $name) : bool {
  return $this->success ? TRUE : throw new TransactionException('Failed rollback of savepoint ' . $name);
}

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