Form/FormFactory.php
public function getFormByMediaProvider(MediaProviderInterface $mediaProvider, array $options = array())
    {
        $formName = $this->providerService->getProviderManager($mediaProvider->getMedia()->getContext())->getFormName();
        return $this->getForm($formName, $mediaProvider, $options);
    }
public function getFormByMediaProvider(MediaProviderInterface $mediaProvider, array $options = array())
    {
        $formName = $this->providerService->getProviderManager($mediaProvider->getMedia()->getContext())->getFormName();
        return $this->getForm($formName, $mediaProvider, $options);
    }
public function getFormByMediaProvider ( MediaProviderInterface $ mediaProvider , array $ options = array ( ) ) { $ formName = $ this -> providerService -> getProviderManager ( $ mediaProvider -> getMedia ( ) -> getContext ( ) ) -> getFormName ( ) ; return $ this -> getForm ( $ formName , $ mediaProvider , $ options ) ; }
Get form by mediaProvider

@param MediaProviderInterface $mediaProvider
@param array $options
@return \Symfony\Component\Form\Form
Get form by mediaProvider