public function YamlFormResultsClearForm::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
- src/
Form/ YamlFormResultsClearForm.php, line 22
Class
- YamlFormResultsClearForm
- Form for form results clear form.
Namespace
Drupal\yamlform\FormCode
public function getQuestion() {
if ($this->sourceEntity) {
$t_args = [
'%title' => $this->sourceEntity
->label(),
];
}
else {
$t_args = [
'%title' => $this->yamlform
->label(),
];
}
return $this
->t('Are you sure you want to delete all submissions to the %title form?', $t_args);
}