Sulu\Bundle\MediaBundle\Media\FormatCache\LocalFormatCache::getPath PHP Method

getPath() protected method

protected getPath ( string $prePath, integer $id, string $fileName, string $format ) : string
$prePath string
$id integer
$fileName string
$format string
return string
    protected function getPath($prePath, $id, $fileName, $format)
    {
        $segment = $this->getSegment($id) . '/';
        $prePath = rtrim($prePath, '/');
        return $prePath . '/' . $format . '/' . $segment . $id . '-' . $fileName;
    }