public function WebformHandlerDeleteForm::getQuestion in Webform 8.5
Same name and namespace in other branches
- 6.x src/Form/WebformHandlerDeleteForm.php \Drupal\webform\Form\WebformHandlerDeleteForm::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/ WebformHandlerDeleteForm.php, line 30
Class
- WebformHandlerDeleteForm
- Form for deleting a webform handler.
Namespace
Drupal\webform\FormCode
public function getQuestion() {
if ($this
->isDialog()) {
$t_args = [
'@title' => $this->webformHandler
->label(),
];
return $this
->t("Delete the '@title' handler?", $t_args);
}
else {
$t_args = [
'%webform' => $this->webform
->label(),
'%title' => $this->webformHandler
->label(),
];
return $this
->t('Delete the %title handler from the %webform webform?', $t_args);
}
}