public function PurgerDeleteForm::getQuestion in Purge 8.3
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/
purge_ui/ src/ Form/ PurgerDeleteForm.php, line 107
Class
- PurgerDeleteForm
- Delete the {id} purger instance.
Namespace
Drupal\purge_ui\FormCode
public function getQuestion() {
if (isset($this->purgePurgers
->getLabels()[$this->id])) {
return $this
->t('Are you sure you want to delete @label?', [
'@label' => $this->purgePurgers
->getLabels()[$this->id],
]);
}
return $this
->t('Are you sure you want to delete this purger?');
}