You are here

public function RevisionRevertForm::getConfirmText in Entity API 8

Same name and namespace in other branches
  1. 8.0 src/Form/RevisionRevertForm.php \Drupal\entity\Form\RevisionRevertForm::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/RevisionRevertForm.php, line 90

Class

RevisionRevertForm

Namespace

Drupal\entity\Form

Code

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