public function WorkflowDeleteForm::getQuestion in Drupal 8
Same name and namespace in other branches
- 9 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\FormCode
public function getQuestion() {
return $this
->t('Are you sure you want to delete %name?', [
'%name' => $this->entity
->label(),
]);
}