You are here

public function TransactorPluginInterface::getTransactionDetails in Transaction 8

Compose human readable details for the given transaction.

Parameters

\Drupal\transaction\TransactionInterface $transaction: The transaction to detail.

string $langcode: (optional) For which language the transaction details should be composed, defaults to the current content language.

Return value

array An array of strings and/or translatable markup objects representing each one a line detailing the transaction. Empty array if no details generated.

1 method overrides TransactorPluginInterface::getTransactionDetails()
TransactorBase::getTransactionDetails in src/TransactorBase.php
Compose human readable details for the given transaction.

File

src/TransactorPluginInterface.php, line 88

Class

TransactorPluginInterface
Defines the interface for transactor plugins.

Namespace

Drupal\transaction

Code

public function getTransactionDetails(TransactionInterface $transaction, $langcode = NULL);