You are here

public function TransactorHandlerInterface::composeDetails 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

\Drupal\Core\StringTranslation\TranslatableMarkup[] An array of translatable markup objects representing each one a line detailing the transaction. Empty array if no details were composed.

1 method overrides TransactorHandlerInterface::composeDetails()
TransactorHandler::composeDetails in src/TransactorHandler.php
Compose human readable details for the given transaction.

File

src/TransactorHandlerInterface.php, line 78

Class

TransactorHandlerInterface
Defines an interface for transactor handler.

Namespace

Drupal\transaction

Code

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