You are here

public function ModerationStateTransitionDeleteForm::getConfirmText in Workbench Moderation 8

Same name and namespace in other branches
  1. 8.2 src/Form/ModerationStateTransitionDeleteForm.php \Drupal\workbench_moderation\Form\ModerationStateTransitionDeleteForm::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/ModerationStateTransitionDeleteForm.php, line 31

Class

ModerationStateTransitionDeleteForm
Builds the form to delete Moderation state transition entities.

Namespace

Drupal\workbench_moderation\Form

Code

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