public static function getTransformPathForPath($path): string
    {
        /** @var ConfigModel $settings */
        $config = ImagerService::getConfig();

        $hashPath = $config->hashPath;
        $pathParts = pathinfo($path);

        if ($hashPath) {
            return FileHelper::normalizePath('/' . md5($pathParts['dirname']));
        }

        return FileHelper::normalizePath($pathParts['dirname']);
    }
public static function getTransformPathForPath($path): string
    {
        /** @var ConfigModel $settings */
        $config = ImagerService::getConfig();

        $hashPath = $config->hashPath;
        $pathParts = pathinfo($path);

        if ($hashPath) {
            return FileHelper::normalizePath('/' . md5($pathParts['dirname']));
        }

        return FileHelper::normalizePath($pathParts['dirname']);
    }
public static function getTransformPathForPath ( $ path ) : string { /** @var ConfigModel $settings */ $ config = ImagerService :: getConfig ( ) ; $ hashPath = $ config -> hashPath ; $ pathParts = pathinfo ( $ path ) ; if ( $ hashPath ) { return FileHelper :: normalizePath ( '/' . md5 ( $ pathParts [ 'dirname' ] ) ) ; } return FileHelper :: normalizePath ( $ pathParts [ 'dirname' ] ) ; }
Returns the transform path for a given local path.

@param $path

@return string
Returns the transform path for a given local path .