public function ProtectionRuleDeleteForm::getConfirmText in User protect 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/ ProtectionRuleDeleteForm.php, line 31
Class
- ProtectionRuleDeleteForm
- Creates a form to delete a protection rule.
Namespace
Drupal\userprotect\FormCode
public function getConfirmText() {
return $this
->t('Delete');
}