You are here

public function ContentModerationNotificationsDeleteForm::getConfirmText in Content Moderation Notifications 8

Same name and namespace in other branches
  1. 8.3 src/Form/ContentModerationNotificationsDeleteForm.php \Drupal\content_moderation_notifications\Form\ContentModerationNotificationsDeleteForm::getConfirmText()
  2. 8.2 src/Form/ContentModerationNotificationsDeleteForm.php \Drupal\content_moderation_notifications\Form\ContentModerationNotificationsDeleteForm::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/ContentModerationNotificationsDeleteForm.php, line 49

Class

ContentModerationNotificationsDeleteForm
Class ContentModerationNotificationDeleteForm.

Namespace

Drupal\content_moderation_notifications\Form

Code

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