You are here

public function TransactorPluginInterface::getResultMessage in Transaction 8

Compose a message that describes the execution result of a transaction.

Parameters

\Drupal\transaction\TransactionInterface $transaction: The executed transaction for which to compose the result message.

string $langcode: (optional) The language to use in message composition. Defaults to the current content language.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup Translatable markup with the execution result message, FALSE if transaction execution was never called.

1 method overrides TransactorPluginInterface::getResultMessage()
TransactorBase::getResultMessage in src/TransactorBase.php
Compose a message that describes the execution result of a transaction.

File

src/TransactorPluginInterface.php, line 58

Class

TransactorPluginInterface
Defines the interface for transactor plugins.

Namespace

Drupal\transaction

Code

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