You are here

public function AutocompletionConfigurationDeleteForm::getConfirmText in Search Autocomplete 2.x

Same name and namespace in other branches
  1. 8 src/Form/AutocompletionConfigurationDeleteForm.php \Drupal\search_autocomplete\Form\AutocompletionConfigurationDeleteForm::getConfirmText()

Gather the confirmation text.

The confirm text is used as the text in the button that confirms the question posed by getQuestion().

Return value

string Translated string.

Overrides EntityConfirmFormBase::getConfirmText

File

src/Form/AutocompletionConfigurationDeleteForm.php, line 50

Class

AutocompletionConfigurationDeleteForm
Class AutocompletionConfigurationDeleteForm.

Namespace

Drupal\search_autocomplete\Form

Code

public function getConfirmText() {
  return $this
    ->t('Delete this configuration');
}