You are here

public function ConfigEntityRevisionsRevertFormBase::getConfirmText in Config Entity Revisions 8.2

Same name and namespace in other branches
  1. 8 src/ConfigEntityRevisionsRevertFormBase.php \Drupal\config_entity_revisions\ConfigEntityRevisionsRevertFormBase::getConfirmText()
  2. 1.x src/ConfigEntityRevisionsRevertFormBase.php \Drupal\config_entity_revisions\ConfigEntityRevisionsRevertFormBase::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/ConfigEntityRevisionsRevertFormBase.php, line 161

Class

ConfigEntityRevisionsRevertFormBase
Class ConfigEntityRevisionsRevertFormBase.

Namespace

Drupal\config_entity_revisions

Code

public function getConfirmText() {
  return $this
    ->t(ucfirst($this->action));
}