public function TransactionServiceInterface::getLastExecutedTransaction in Transaction 8
Gets the last executed transaction for a given type and target entity.
Parameters
string|\Drupal\Core\Entity\ContentEntityInterface $target_entity: The target entity object or ID.
string|\Drupal\transaction\TransactionTypeInterface $transaction_type: The transaction type object or ID.
Return value
null|\Drupal\transaction\TransactionInterface The last executed transaction, NULL if not found.
Throws
\InvalidArgumentException If the given transaction type ID does not exists.
1 method overrides TransactionServiceInterface::getLastExecutedTransaction()
- TransactionService::getLastExecutedTransaction in src/
TransactionService.php - Gets the last executed transaction for a given type and target entity.
File
- src/
TransactionServiceInterface.php, line 24
Class
- TransactionServiceInterface
- Transaction service interface.
Namespace
Drupal\transactionCode
public function getLastExecutedTransaction($target_entity, $transaction_type);