You are here

public function MediaRevisionDeleteForm::getConfirmText 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::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/MediaRevisionDeleteForm.php, line 93

Class

MediaRevisionDeleteForm
Provides a form for reverting media revision.

Namespace

Drupal\media_revisions_ui\Form

Code

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