public function form($type = 'form', $data = null, array $options = [], FormBuilderInterface $parent = null)
    {
        return $this['form.factory']->create($type, $data, $options, $parent);
    }
public function form($type = 'form', $data = null, array $options = [], FormBuilderInterface $parent = null)
    {
        return $this['form.factory']->create($type, $data, $options, $parent);
    }
public function form ( $ type = 'form' , $ data = null , array $ options = [ ] , FormBuilderInterface $ parent = null ) { return $ this [ 'form.factory' ] -> create ( $ type , $ data , $ options , $ parent ) ; }
Returns a form.

@see FormFactory::create()

@param string|FormTypeInterface $type    The type of the form
@param mixed                    $data    The initial data
@param array                    $options The options
@param FormBuilderInterface     $parent  The parent builder

@return FormInterface The form named after the type

@throws ExceptionInterface if any given option is not applicable to the given type
Returns a form .