public function getNegotiatedMediaType(array $supportedMediaTypes, $trim = true)
    {
        return MediaTypeHelper::negotiateMediaType(MediaTypeHelper::determineAcceptedMediaTypes($this), $supportedMediaTypes, $trim);
    }
public function getNegotiatedMediaType(array $supportedMediaTypes, $trim = true)
    {
        return MediaTypeHelper::negotiateMediaType(MediaTypeHelper::determineAcceptedMediaTypes($this), $supportedMediaTypes, $trim);
    }
public function getNegotiatedMediaType ( array $ supportedMediaTypes , $ trim = true ) { return MediaTypeHelper :: negotiateMediaType ( MediaTypeHelper :: determineAcceptedMediaTypes ( $ this ) , $ supportedMediaTypes , $ trim ) ; }
Returns the best fitting IANA media type after applying the content negotiation
rules on a possible Accept header.

@param array $supportedMediaTypes A list of media types which are supported by the application / controller
@param boolean $trim If true, only the type/subtype of the media type is returned. If false, the full original media type string is returned.
@return string The media type and sub type which matched, NULL if none matched

@deprecated Since Flow 5.1, in favor of using the separate MediaTypeHelper
@see MediaTypeHelper::negotiateMediaType()
Returns the best fitting IANA media type after applying the content negotiation rules on a possible Accept header .