concrete/src/Http/RequestMediaTypeParser.php
public function getMediaTypeData($mediaType)
    {
        $map = $this->getRequestAcceptMap();
        list($type, $subType) = $this->normalizeMediaType($mediaType);
        $result = [];
        foreach ($this->getMediaTypeAlternatives($type, $subType) as $alternative) {
            if (isset($map[$alternative])) {
                $result[$alternative] = $map[$alternative];
            }
        }

        return $result;
    }
public function getMediaTypeData($mediaType)
    {
        $map = $this->getRequestAcceptMap();
        list($type, $subType) = $this->normalizeMediaType($mediaType);
        $result = [];
        foreach ($this->getMediaTypeAlternatives($type, $subType) as $alternative) {
            if (isset($map[$alternative])) {
                $result[$alternative] = $map[$alternative];
            }
        }

        return $result;
    }
public function getMediaTypeData ( $ mediaType ) { $ map = $ this -> getRequestAcceptMap ( ) ; list ( $ type , $ subType ) = $ this -> normalizeMediaType ( $ mediaType ) ; $ result = [ ] ; foreach ( $ this -> getMediaTypeAlternatives ( $ type , $ subType ) as $ alternative ) { if ( isset ( $ map [ $ alternative ] ) ) { $ result [ $ alternative ] = $ map [ $ alternative ] ; } } return $ result ; }
Get the data associated to a media type.

@param string|string[] $mediaType the media type to be checked (a string like 'text/html', or an array like ['text','html'])

@return array keys are the media type; values are the associated data, sorted by the preferred type (the 'q' parameter)
Get the data associated to a media type .