Webiny\Component\Storage\Driver\Local\LocalHelper::getKey PHP Метод

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

Gets the key using file $path and storage $directory
public getKey ( string $path, string $directory ) : string
$path string Path to extract file key from
$directory string Directory of the storage
Результат string
    public function getKey($path, $directory)
    {
        $path = $this->normalizePath($path);
        return ltrim(substr($path, strlen($directory)), '/');
    }