Pimcore\Model\Asset\Image\Thumbnail::getPath PHP Method

getPath() public method

public getPath ( boolean $deferredAllowed = true ) : mixed | string
$deferredAllowed boolean
return mixed | string
    public function getPath($deferredAllowed = true)
    {
        $fsPath = $this->getFileSystemPath($deferredAllowed);
        $path = str_replace(PIMCORE_DOCUMENT_ROOT, "", $fsPath);
        $path = urlencode_ignore_slash($path);
        $results = \Pimcore::getEventManager()->trigger("frontend.path.asset.image.thumbnail", $this, ["filesystemPath" => $fsPath, "frontendPath" => $path]);
        if ($results->count()) {
            $path = $results->last();
        }
        return $path;
    }