eZ\Publish\Core\FieldType\BinaryBase\PathGenerator\LegacyPathGenerator::getFirstPartOfMimeType PHP Method

getFirstPartOfMimeType() protected method

Extracts the first part (before the '/') from the given $mimeType.
protected getFirstPartOfMimeType ( string $mimeType ) : string
$mimeType string
return string
    protected function getFirstPartOfMimeType($mimeType)
    {
        return substr($mimeType, 0, strpos($mimeType, '/'));
    }