Form/FormFactory.php
public function getFormName($data)
    {
        $context = $data;

        if ($data instanceof MediaCommonInterface) {
            if ($data instanceof MediaProviderInterface) {
                $context = $data->getMedia()->getContext();
            } else {
                $context = $data->getContext();
            }
        }

        return $this->providerService->getProviderManager($context)->getFormName();
    }
public function getFormName($data)
    {
        $context = $data;

        if ($data instanceof MediaCommonInterface) {
            if ($data instanceof MediaProviderInterface) {
                $context = $data->getMedia()->getContext();
            } else {
                $context = $data->getContext();
            }
        }

        return $this->providerService->getProviderManager($context)->getFormName();
    }
public function getFormName ( $ data ) { $ context = $ data ; if ( $ data instanceof MediaCommonInterface ) { if ( $ data instanceof MediaProviderInterface ) { $ context = $ data -> getMedia ( ) -> getContext ( ) ; } else { $ context = $ data -> getContext ( ) ; } } return $ this -> providerService -> getProviderManager ( $ context ) -> getFormName ( ) ; }
Get form name

@param string|MediaCommonInterface $data
@return string
Get form name