You are here

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\Form

Code

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