FormTrait
Forms of {@see \App\UI\Front\System\Components\AccountDeletionComponent\AccountDeletion}: the request (signed in), the cancel (e-mailed token or the sign-in ticket from the session) and the confirmation of an account without a password. All POST with CSRF protection.
Table of Contents
Methods
- onCancelSuccess() : void
- onConfirmSuccess() : void
- onRequestSuccess() : void
- createComponentCancelForm() : Form
- createComponentConfirmForm() : Form
- createComponentRequestForm() : Form
- buildForm() : Form
- readFormKey() : string
- readScheduledAt() : DateTimeImmutable|null
- resolveRequestError() : string
Methods
onCancelSuccess()
public
onCancelSuccess(Form $form) : void
Parameters
- $form : Form
onConfirmSuccess()
public
onConfirmSuccess(Form $form) : void
Parameters
- $form : Form
onRequestSuccess()
public
onRequestSuccess(Form $form) : void
Parameters
- $form : Form
createComponentCancelForm()
protected
createComponentCancelForm() : Form
Return values
FormcreateComponentConfirmForm()
protected
createComponentConfirmForm() : Form
Return values
FormcreateComponentRequestForm()
protected
createComponentRequestForm() : Form
Return values
FormbuildForm()
private
buildForm() : Form
Return values
FormreadFormKey()
private
static readFormKey(Form $form) : string
Parameters
- $form : Form
Return values
stringreadScheduledAt()
private
readScheduledAt(Result $result) : DateTimeImmutable|null
Parameters
- $result : Result
Return values
DateTimeImmutable|nullresolveRequestError()
private
resolveRequestError(Result $result) : string
Parameters
- $result : Result