public function AutocompletionConfigurationDeleteForm::getQuestion in Search Autocomplete 8
Same name and namespace in other branches
- 2.x src/Form/AutocompletionConfigurationDeleteForm.php \Drupal\search_autocomplete\Form\AutocompletionConfigurationDeleteForm::getQuestion()
Gathers a confirmation question.
The question is used as a title in our confirm form. For delete confirm forms, this typically takes the form of "Are you sure you want to delete...", including the entity label.
Return value
string Translated string.
Overrides ConfirmFormInterface::getQuestion
File
- src/
Form/ AutocompletionConfigurationDeleteForm.php, line 35
Class
- AutocompletionConfigurationDeleteForm
- Class AutocompletionConfigurationDeleteForm.
Namespace
Drupal\search_autocomplete\FormCode
public function getQuestion() {
return $this
->t('Are you sure you want to delete the autocompletion configuration %label?', [
'%label' => $this->entity
->label(),
]);
}