You are here

protected function TransactionDeleteForm::getDeletionMessage in Transaction 8

Overrides ContentEntityDeleteForm::getDeletionMessage

File

src/Form/TransactionDeleteForm.php, line 15

Class

TransactionDeleteForm
Provides a form for deleting a transaction.

Namespace

Drupal\transaction\Form

Code

protected function getDeletionMessage() {
  $msg_args = [
    '@type' => $this
      ->getEntity()
      ->get('type')->entity
      ->label(),
    '%description' => $this
      ->getEntity()
      ->label(),
  ];
  return $this
    ->t('The transaction %description of type @type has been deleted.', $msg_args);
}