eZ\Publish\Core\FieldType\BinaryBase\BinaryBaseStorage\Gateway\LegacyStorage::prependMimeToPath PHP Метод

prependMimeToPath() публичный Метод

Prepends $path with the first part of the given $mimeType.
public prependMimeToPath ( string $path, string $mimeType ) : string
$path string
$mimeType string
Результат string
    public function prependMimeToPath($path, $mimeType)
    {
        $res = substr($mimeType, 0, strpos($mimeType, '/')) . '/' . $path;
        return $res;
    }