private function handleFormOnlySubmit(Request $request, $type)
    {
        // handle form submit
        $configuration = $this->get('sulu_form.configuration.form_configuration_factory')->buildByType(
            $type,
            $this->form->getData(),
            $request->getLocale(),
            []
        );

        if ($this->get('sulu_form.handler')->handle($this->form, $configuration)) {
            return new RedirectResponse('?send=true');
        }
    }
private function handleFormOnlySubmit(Request $request, $type)
    {
        // handle form submit
        $configuration = $this->get('sulu_form.configuration.form_configuration_factory')->buildByType(
            $type,
            $this->form->getData(),
            $request->getLocale(),
            []
        );

        if ($this->get('sulu_form.handler')->handle($this->form, $configuration)) {
            return new RedirectResponse('?send=true');
        }
    }
private function handleFormOnlySubmit ( Request $ request , $ type ) { // handle form submit $ configuration = $ this -> get ( 'sulu_form.configuration.form_configuration_factory' ) -> buildByType ( $ type , $ this -> form -> getData ( ) , $ request -> getLocale ( ) , [ ] ) ; if ( $ this -> get ( 'sulu_form.handler' ) -> handle ( $ this -> form , $ configuration ) ) { return new RedirectResponse ( '?send=true' ) ; } }
Handle form only submit.

@param Request $request
@param AbstractType $type

@return RedirectResponse
Handle form only submit .