protected function createFormBuilder($name = null, $type = 'form', $data = null, array $options = [])
    {
        if ($name !== null) {
            return $this->formFactory->createNamedBuilder($name, $type, $data, $options);
        }

        return $this->formFactory->createBuilder($type, $data, $options);
    }
protected function createFormBuilder($name = null, $type = 'form', $data = null, array $options = [])
    {
        if ($name !== null) {
            return $this->formFactory->createNamedBuilder($name, $type, $data, $options);
        }

        return $this->formFactory->createBuilder($type, $data, $options);
    }
protected function createFormBuilder ( $ name = null , $ type = 'form' , $ data = null , array $ options = [ ] ) { if ( $ name !== null ) { return $ this -> formFactory -> createNamedBuilder ( $ name , $ type , $ data , $ options ) ; } return $ this -> formFactory -> createBuilder ( $ type , $ data , $ options ) ; }
Creates and returns a form builder.

@param null|string   $name    For named form builder must not be null
@param string|object $type    Form type
@param mixed|null    $data    Form data
@param array         $options Form builder options

@return FormBuilderInterface
Creates and returns a form builder .