public function getConvertedType($mimeType)
    {
        $type = $mimeType;

        if (1 !== preg_match('#^application\/x\.[^/]+\+json$#', $mimeType) && 1 === preg_match('#^[^/]+\/[^/]+$#', $mimeType)) {
            $type = 'content';
        }

        return $type;
    }
public function getConvertedType($mimeType)
    {
        $type = $mimeType;

        if (1 !== preg_match('#^application\/x\.[^/]+\+json$#', $mimeType) && 1 === preg_match('#^[^/]+\/[^/]+$#', $mimeType)) {
            $type = 'content';
        }

        return $type;
    }
public function getConvertedType ( $ mimeType ) { $ type = $ mimeType ; if ( 1 !== preg_match ( '#^application\/x\.[^/]+\+json$#' , $ mimeType ) && 1 === preg_match ( '#^[^/]+\/[^/]+$#' , $ mimeType ) ) { $ type = 'content' ; } return $ type ; }
Converts mime-type to a supported format.

@param string $mimeType

@return string
Converts mime - type to a supported format .