You are here

public function TransactorPluginInterface::getTransactionDescription in Transaction 8

Compose a human readable description for the given transaction.

Parameters

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

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

Return value

string|\Drupal\Core\StringTranslation\TranslatableMarkup A string or translatable markup with the generated description.

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

File

src/TransactorPluginInterface.php, line 72

Class

TransactorPluginInterface
Defines the interface for transactor plugins.

Namespace

Drupal\transaction

Code

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