You are here

public function EasyEmailTypeDeleteForm::getQuestion in Easy Email 2.0.x

Same name and namespace in other branches
  1. 8 src/Form/EasyEmailTypeDeleteForm.php \Drupal\easy_email\Form\EasyEmailTypeDeleteForm::getQuestion()

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

File

src/Form/EasyEmailTypeDeleteForm.php, line 17

Class

EasyEmailTypeDeleteForm
Builds the form to delete Email type entities.

Namespace

Drupal\easy_email\Form

Code

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