You are here

public function HeartbeatRevisionRevertForm::getConfirmText in Heartbeat 8

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/HeartbeatRevisionRevertForm.php, line 89

Class

HeartbeatRevisionRevertForm
Provides a form for reverting a Heartbeat revision.

Namespace

Drupal\heartbeat\Form

Code

public function getConfirmText() {
  return t('Revert');
}