UserCancelForm::getConfirmText

public UserCancelForm::getConfirmText()

Returns a caption for the button that confirms the action.

Return value

string The form confirmation text.

Overrides ContentEntityConfirmFormBase::getConfirmText

File

core/modules/user/src/Form/UserCancelForm.php, line 64

Class

UserCancelForm
Provides a confirmation form for cancelling user account.

Namespace

Drupal\user\Form

Code

1
2
3
public function getConfirmText() {
  return $this->t('Cancel account');
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.