public function TransactorHandler::composeResultMessage 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.
Overrides TransactorHandlerInterface::composeResultMessage
File
- src/
TransactorHandler.php, line 206
Class
- TransactorHandler
- Transactor entity handler.
Namespace
Drupal\transactionCode
public function composeResultMessage(TransactionInterface $transaction, $langcode = NULL) {
return $transaction
->getType()
->getPlugin()
->getResultMessage($transaction, $langcode);
}