You are here

public function ContentModerationNotificationsDeleteForm::getQuestion 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::getQuestion()
  2. 8.2 src/Form/ContentModerationNotificationsDeleteForm.php \Drupal\content_moderation_notifications\Form\ContentModerationNotificationsDeleteForm::getQuestion()

Gathers a confirmation question.

The question is used as a title in our confirm form. For delete confirm forms, this typically takes the form of "Are you sure you want to delete...", including the entity label.

Return value

string Translated string.

Overrides ConfirmFormInterface::getQuestion

File

src/Form/ContentModerationNotificationsDeleteForm.php, line 34

Class

ContentModerationNotificationsDeleteForm
Class ContentModerationNotificationDeleteForm.

Namespace

Drupal\content_moderation_notifications\Form

Code

public function getQuestion() {
  return $this
    ->t('Are you sure you want to delete content_moderation_notification %label?', array(
    '%label' => $this->entity
      ->label(),
  ));
}