src/Controller/MelisCoreGdprController.php
private function getForm($formConfig)
    {
        $factory = new \Zend\Form\Factory();
        $formElements = $this->serviceLocator->get('FormElementManager');
        $factory->setFormElementManager($formElements);
        $form = $factory->createForm($formConfig);

        return $form;
    }
private function getForm($formConfig)
    {
        $factory = new \Zend\Form\Factory();
        $formElements = $this->serviceLocator->get('FormElementManager');
        $factory->setFormElementManager($formElements);
        $form = $factory->createForm($formConfig);

        return $form;
    }
private function getForm ( $ formConfig ) { $ factory = new \ Zend \ Form \ Factory ( ) ; $ formElements = $ this -> serviceLocator -> get ( 'FormElementManager' ) ; $ factory -> setFormElementManager ( $ formElements ) ; $ form = $ factory -> createForm ( $ formConfig ) ; return $ form ; }
Gets the form
@param formConfig
@return \Zend\Form\ElementInterface
Gets the form