You are here

public function TransactionInterface::getPrevious in Transaction 8

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

Return value

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

Throws

\Drupal\transaction\InvalidTransactionStateException If the transaction was not executed yet.

1 method overrides TransactionInterface::getPrevious()
Transaction::getPrevious in src/Entity/Transaction.php
Get the previous same-type transaction in order of execution.

File

src/TransactionInterface.php, line 93

Class

TransactionInterface
The interface for transaction entities.

Namespace

Drupal\transaction

Code

public function getPrevious();