Neos\Flow\Http\Request::trimMediaType PHP Метод

trimMediaType() публичный статический Метод

Strips off any parameters from the given media type and returns just the type and subtype in the format "type/subtype".
См. также: Neos\Utility\MediaTypes::trimMediaType()
Устаревший: since Flow 2.1. Use \Neos\Utility\MediaTypes::trimMediaType() instead
public static trimMediaType ( string $rawMediaType ) : string
$rawMediaType string The full media type, for example "application/json; charset=UTF-8"
Результат string Just the type and subtype, for example "application/json"
    public static function trimMediaType($rawMediaType)
    {
        return MediaTypes::trimMediaType($rawMediaType);
    }