You are here

public function NewsletterDeleteForm::getConfirmText in Simplenews 8.2

Same name and namespace in other branches
  1. 8 src/Form/NewsletterDeleteForm.php \Drupal\simplenews\Form\NewsletterDeleteForm::getConfirmText()
  2. 3.x src/Form/NewsletterDeleteForm.php \Drupal\simplenews\Form\NewsletterDeleteForm::getConfirmText()

Returns a caption for the button that confirms the action.

Return value

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

Overrides EntityConfirmFormBase::getConfirmText

File

src/Form/NewsletterDeleteForm.php, line 31

Class

NewsletterDeleteForm
Builds the form to delete a contact category.

Namespace

Drupal\simplenews\Form

Code

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