public function Transaction::getNext in Transaction 8
Get the next same-type transaction in order of execution.
Return value
\Drupal\transaction\TransactionInterface The previously executed transaction. NULL if this is the last executed.
Throws
\Drupal\transaction\InvalidTransactionStateException If the transaction was not executed yet.
Overrides TransactionInterface::getNext
File
- src/
Entity/ Transaction.php, line 474
Class
- Transaction
- Provides the transaction content entity.
Namespace
Drupal\transaction\EntityCode
public function getNext() {
if ($this
->isPending()) {
throw new InvalidTransactionStateException();
}
return $this
->transactorHandler()
->getNextTransaction($this);
}