You are here

public function OpignoAnswerRevisionDeleteForm::getQuestion in Opigno module 3.x

Same name and namespace in other branches
  1. 8 src/Form/OpignoAnswerRevisionDeleteForm.php \Drupal\opigno_module\Form\OpignoAnswerRevisionDeleteForm::getQuestion()

Returns the question to ask the user.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The form question. The page title will be set to this value.

Overrides ConfirmFormInterface::getQuestion

File

src/Form/OpignoAnswerRevisionDeleteForm.php, line 75

Class

OpignoAnswerRevisionDeleteForm
Provides a form for deleting a Answer revision.

Namespace

Drupal\opigno_module\Form

Code

public function getQuestion() {
  $date_formatter = \Drupal::service('date.formatter');
  return t('Are you sure you want to delete the revision from %revision-date?', [
    '%revision-date' => $date_formatter
      ->format($this->revision
      ->getRevisionCreationTime()),
  ]);
}