protected function processForm($instance)
    {
        $parameters = $this->getRequestParameters();
        $form = $this->getForm($instance)->bind($parameters);
        $report = $form->validate();
        if ($report->containsError()) {
            $this->returnValidationFailure($report);
        } else {
            $resource = $form->save();
            $this->returnSuccess(['uri' => $resource->getUri()]);
        }
    }
protected function processForm($instance)
    {
        $parameters = $this->getRequestParameters();
        $form = $this->getForm($instance)->bind($parameters);
        $report = $form->validate();
        if ($report->containsError()) {
            $this->returnValidationFailure($report);
        } else {
            $resource = $form->save();
            $this->returnSuccess(['uri' => $resource->getUri()]);
        }
    }
protected function processForm ( $ instance ) { $ parameters = $ this -> getRequestParameters ( ) ; $ form = $ this -> getForm ( $ instance ) -> bind ( $ parameters ) ; $ report = $ form -> validate ( ) ; if ( $ report -> containsError ( ) ) { $ this -> returnValidationFailure ( $ report ) ; } else { $ resource = $ form -> save ( ) ; $ this -> returnSuccess ( [ 'uri' => $ resource -> getUri ( ) ] ) ; } }
Process the form submission
Bind the http data to form, validate, and save

@param $instance
Process the form submission Bind the http data to form validate and save