You are here

public function DeleteWordForm::getConfirmText in Restrict Abusive Words 8

Returns a caption for the button that confirms the action.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The form confirmation text.

Overrides ConfirmFormBase::getConfirmText

File

src/Form/DeleteWordForm.php, line 46
Contains \Drupal\restrict_abusive_words\Form\DeleteWordForm.

Class

DeleteWordForm
Contribute form.

Namespace

Drupal\restrict_abusive_words\Form

Code

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