public function YamlFormUiElementDeleteForm::getQuestion in YAML Form 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
File
- modules/
yamlform_ui/ src/ Form/ YamlFormUiElementDeleteForm.php, line 151
Class
- YamlFormUiElementDeleteForm
- Form for deleting a form element.
Namespace
Drupal\yamlform_ui\FormCode
public function getQuestion() {
return $this
->t('Are you sure you want to delete the %title element from the %yamlform form?', [
'%yamlform' => $this->yamlform
->label(),
'%title' => $this
->getElementTitle(),
]);
}