Form/FormFactory.php
public function getFormByContext($context, array $options = array())
    {
        $formName = $this->providerService->getProviderManager($context)->getFormName();
        $mediaProvider = $this->mediaService->create($context);

        return $this->getForm($formName, $mediaProvider, $options);
    }
public function getFormByContext($context, array $options = array())
    {
        $formName = $this->providerService->getProviderManager($context)->getFormName();
        $mediaProvider = $this->mediaService->create($context);

        return $this->getForm($formName, $mediaProvider, $options);
    }
public function getFormByContext ( $ context , array $ options = array ( ) ) { $ formName = $ this -> providerService -> getProviderManager ( $ context ) -> getFormName ( ) ; $ mediaProvider = $ this -> mediaService -> create ( $ context ) ; return $ this -> getForm ( $ formName , $ mediaProvider , $ options ) ; }
Get form by the context

@param string $context
@param array $options
@return \Symfony\Component\Form\Form
Get form by the context