You are here

public function DataPolicyRevisionRevertForm::getConfirmText in Data Policy 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/DataPolicyRevisionRevertForm.php, line 102

Class

DataPolicyRevisionRevertForm
Provides a form for reverting a Data policy revision.

Namespace

Drupal\data_policy\Form

Code

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