protected function loadForm(Request $request)
    {
        $formId = (int) $request->get('form');

        if (!$formId) {
            throw new BadRequestHttpException('"form" is required parameter');
        }

        return $this->get('sulu_form.repository.form')->loadById($formId);
    }
protected function loadForm(Request $request)
    {
        $formId = (int) $request->get('form');

        if (!$formId) {
            throw new BadRequestHttpException('"form" is required parameter');
        }

        return $this->get('sulu_form.repository.form')->loadById($formId);
    }
protected function loadForm ( Request $ request ) { $ formId = ( int ) $ request -> get ( 'form' ) ; if ( ! $ formId ) { throw new BadRequestHttpException ( '"form" is required parameter' ) ; } return $ this -> get ( 'sulu_form.repository.form' ) -> loadById ( $ formId ) ; }
Get form.

@param Request $request

@return Form
Get form .