You are here

public function MediaRevisionDeleteForm::getQuestion in Media Revisions UI 8

Same name and namespace in other branches
  1. 2.0.x src/Form/MediaRevisionDeleteForm.php \Drupal\media_revisions_ui\Form\MediaRevisionDeleteForm::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/MediaRevisionDeleteForm.php, line 73

Class

MediaRevisionDeleteForm
Provides a form for reverting media revision.

Namespace

Drupal\media_revisions_ui\Form

Code

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