You are here

public function SimpleMegaMenuRevisionRevertForm::getConfirmText in Simple Mega Menu 8

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

Class

SimpleMegaMenuRevisionRevertForm
Provides a form for reverting a Simple mega menu revision.

Namespace

Drupal\simple_megamenu\Form

Code

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