public function OpignoAnswerRevisionDeleteForm::getQuestion in Opigno module 8
Same name and namespace in other branches
- 3.x 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\FormCode
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()),
]);
}