main/core/Form/Handler/FormHandler.php
public function getView($formReference = null, $data = null, array $options = [])
    {
        if ($formReference) {
            $this->getForm($formReference, $data, $options);
        }

        return $this->getCurrentForm()->createView();
    }
public function getView($formReference = null, $data = null, array $options = [])
    {
        if ($formReference) {
            $this->getForm($formReference, $data, $options);
        }

        return $this->getCurrentForm()->createView();
    }
public function getView ( $ formReference = null , $ data = null , array $ options = [ ] ) { if ( $ formReference ) { $ this -> getForm ( $ formReference , $ data , $ options ) ; } return $ this -> getCurrentForm ( ) -> createView ( ) ; }
Creates and returns a form view either from the current form
or from a new form type reference passed as argument.

@param string $formReference The form type name
@param mixed  $data          An entity or array to be bound
@param array  $options       The options to be passed to the form builder

@return mixed

@throws \LogicException if no reference is passed and
no form has been handled yet
Creates and returns a form view either from the current form or from a new form type reference passed as argument .