You are here

public function MediaRevisionRevertForm::getConfirmText in Media Revisions UI 8

Same name and namespace in other branches
  1. 2.0.x src/Form/MediaRevisionRevertForm.php \Drupal\media_revisions_ui\Form\MediaRevisionRevertForm::getConfirmText()

Returns a caption for the button that confirms the action.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The form confirmation text.

Overrides ConfirmFormBase::getConfirmText

File

src/Form/MediaRevisionRevertForm.php, line 98

Class

MediaRevisionRevertForm
Provides a form for reverting media revision.

Namespace

Drupal\media_revisions_ui\Form

Code

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