public function TransactorBase::getExecutionIndications in Transaction 8
Compose a messsage with execution indications for the given transaction.
This message is commonly shown to the users upon transaction execution.
Parameters
\Drupal\transaction\TransactionInterface $transaction: The pending transaction to compose indications about.
string $langcode: (optional) For which language the execution indications should be composed, defaults to the current content language.
Return value
string|\Drupal\Core\StringTranslation\TranslatableMarkup A string or translatable markup with the generated message.
Overrides TransactorPluginInterface::getExecutionIndications
1 call to TransactorBase::getExecutionIndications()
- BalanceTransactor::getExecutionIndications in src/
Plugin/ Transaction/ BalanceTransactor.php - Compose a messsage with execution indications for the given transaction.
1 method overrides TransactorBase::getExecutionIndications()
- BalanceTransactor::getExecutionIndications in src/
Plugin/ Transaction/ BalanceTransactor.php - Compose a messsage with execution indications for the given transaction.
File
- src/
TransactorBase.php, line 785
Class
- TransactorBase
- Provides a base class for transactor plugins.
Namespace
Drupal\transactionCode
public function getExecutionIndications(TransactionInterface $transaction, $langcode = NULL) {
$t_options = $langcode ? [
'langcode' => $langcode,
] : [];
return $this
->t('The target entity %label may be altered by the transaction.', [
'%label' => $transaction
->getTargetEntity()
->label(),
], $t_options);
}