public function WorkflowTransitionRevertForm::getConfirmText in Workflow 8
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/ WorkflowTransitionRevertForm.php, line 63
Class
- WorkflowTransitionRevertForm
- Implements a form to revert an entity to a previous state.
Namespace
Drupal\workflow\FormCode
public function getConfirmText() {
return $this
->t('Revert');
}