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

public function getConfirmText() {
  return $this->t('Cancel account');
}
doc_Drupal
2016-10-29 09:52:24
Comments
Leave a Comment

Please login to continue.