You are here

public function WorkflowDeleteForm::getQuestion in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/workflows/src/Form/WorkflowDeleteForm.php \Drupal\workflows\Form\WorkflowDeleteForm::getQuestion()
  2. 10 core/modules/workflows/src/Form/WorkflowDeleteForm.php \Drupal\workflows\Form\WorkflowDeleteForm::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

1 call to WorkflowDeleteForm::getQuestion()
WorkflowDeleteForm::buildForm in core/modules/workflows/src/Form/WorkflowDeleteForm.php
Form constructor.

File

core/modules/workflows/src/Form/WorkflowDeleteForm.php, line 32

Class

WorkflowDeleteForm
Builds the form to delete Workflow entities.

Namespace

Drupal\workflows\Form

Code

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