You are here

public function TransactionExecuteForm::getDescription in Transaction 8

Returns additional text to display as a description.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The form description.

Overrides ContentEntityConfirmFormBase::getDescription

File

src/Form/TransactionExecuteForm.php, line 23

Class

TransactionExecuteForm
Provides a form for transaction execution.

Namespace

Drupal\transaction\Form

Code

public function getDescription() {

  /** @var \Drupal\transaction\TransactionInterface $transaction */
  $transaction = $this
    ->getEntity();

  /** @var \Drupal\transaction\TransactionTypeInterface $transaction_type */
  $transaction_type = $transaction
    ->get('type')->entity;
  return $transaction_type
    ->getPlugin()
    ->getExecutionIndications($transaction) ?: parent::getDescription();
}