src/Sulu/Bundle/MediaBundle/Media/FormatManager/FormatManager.php
private function checkMimeTypeSupported($mimeType)
    {
        foreach ($this->supportedMimeTypes as $supportedMimeType) {
            if (fnmatch($supportedMimeType, $mimeType)) {
                return true;
            }
        }

        return false;
    }
private function checkMimeTypeSupported($mimeType)
    {
        foreach ($this->supportedMimeTypes as $supportedMimeType) {
            if (fnmatch($supportedMimeType, $mimeType)) {
                return true;
            }
        }

        return false;
    }
private function checkMimeTypeSupported ( $ mimeType ) { foreach ( $ this -> supportedMimeTypes as $ supportedMimeType ) { if ( fnmatch ( $ supportedMimeType , $ mimeType ) ) { return true ; } } return false ; }
Returns true if the given mime type is supported, otherwise false.

@param $mimeType

@return bool
Returns true if the given mime type is supported otherwise false .