You are here

public function MessageTemplateDeleteConfirm::getQuestion in Message 8

Returns the question to ask the user.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The form question. The page title will be set to this value.

Overrides ConfirmFormInterface::getQuestion

1 call to MessageTemplateDeleteConfirm::getQuestion()
MessageTemplateDeleteConfirm::buildForm in src/Form/MessageTemplateDeleteConfirm.php
Form constructor.

File

src/Form/MessageTemplateDeleteConfirm.php, line 17

Class

MessageTemplateDeleteConfirm
Provides a form for message template deletion.

Namespace

Drupal\message\Form

Code

public function getQuestion() {
  return t('Are you sure you want to delete the message template %template?', [
    '%template' => $this->entity
      ->label(),
  ]);
}