ShopAccountForm::submit PHP Метод

submit() публичный Метод

Save the changes to the form
public submit ( array $data, Form $form, SS_HTTPRequest $request ) : boolean | SS_HTTPResponse
$data array
$form Form
$request SS_HTTPRequest
Результат boolean | SS_HTTPResponse
    public function submit($data, $form, $request)
    {
        $member = Member::currentUser();
        if (!$member) {
            return false;
        }
        $form->saveInto($member);
        $member->write();
        $form->sessionMessage(_t("MemberForm.DetailsSaved", 'Your details have been saved'), 'good');
        $this->extend('updateShopAccountFormResponse', $request, $form, $data, $response);
        return $response ?: $this->getController()->redirectBack();
    }