You are here

interface TransactionServiceInterface in Transaction 8

Transaction service interface.

Hierarchy

Expanded class hierarchy of TransactionServiceInterface

All classes that implement TransactionServiceInterface

1 file declares its use of TransactionServiceInterface
LastTransactionFetch.php in src/Plugin/RulesAction/LastTransactionFetch.php

File

src/TransactionServiceInterface.php, line 8

Namespace

Drupal\transaction
View source
interface TransactionServiceInterface {

  /**
   * Gets the last executed transaction for a given type and target entity.
   *
   * @param string|\Drupal\Core\Entity\ContentEntityInterface $target_entity
   *   The target entity object or ID.
   * @param string|\Drupal\transaction\TransactionTypeInterface $transaction_type
   *   The transaction type object or ID.
   *
   * @return null|\Drupal\transaction\TransactionInterface
   *   The last executed transaction, NULL if not found.
   *
   * @throws \InvalidArgumentException
   *   If the given transaction type ID does not exists.
   */
  public function getLastExecutedTransaction($target_entity, $transaction_type);

}

Members

Namesort descending Modifiers Type Description Overrides
TransactionServiceInterface::getLastExecutedTransaction public function Gets the last executed transaction for a given type and target entity. 1