You are here

public function TransactorHandlerInterface::getPreviousTransaction in Transaction 8

Get the previous same-type transaction in order of execution.

Parameters

\Drupal\transaction\TransactionInterface $transaction: The transaction from which to get the previous.

Return value

\Drupal\transaction\TransactionInterface The previously executed transaction. NULL if this is the first one.

Throws

\Drupal\transaction\InvalidTransactionStateException If the transaction is no executed.

1 method overrides TransactorHandlerInterface::getPreviousTransaction()
TransactorHandler::getPreviousTransaction in src/TransactorHandler.php
Get the previous same-type transaction in order of execution.

File

src/TransactorHandlerInterface.php, line 92

Class

TransactorHandlerInterface
Defines an interface for transactor handler.

Namespace

Drupal\transaction

Code

public function getPreviousTransaction(TransactionInterface $transaction);