You are here

public function ModerationStateDeleteForm::getConfirmText in Workbench Moderation 8.2

Same name and namespace in other branches
  1. 8 src/Form/ModerationStateDeleteForm.php \Drupal\workbench_moderation\Form\ModerationStateDeleteForm::getConfirmText()

Returns a caption for the button that confirms the action.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The form confirmation text.

Overrides EntityConfirmFormBase::getConfirmText

File

src/Form/ModerationStateDeleteForm.php, line 30

Class

ModerationStateDeleteForm
Builds the form to delete Moderation state entities.

Namespace

Drupal\workbench_moderation\Form

Code

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