You are here

public function SubscriberDeleteForm::getConfirmText in Simplenews 8.2

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

Returns a caption for the button that confirms the action.

Return value

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

Overrides ContentEntityConfirmFormBase::getConfirmText

File

src/Form/SubscriberDeleteForm.php, line 31

Class

SubscriberDeleteForm
Builds the form to delete a contact category.

Namespace

Drupal\simplenews\Form

Code

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