Bolt\Filesystem\Plugin\AssetUrl::handle PHP Method

handle() public method

Returns the public url/path of an asset.
public handle ( string $path ) : string
$path string
return string
    public function handle($path)
    {
        // getFile first to split mount point from path, if present.
        $file = $this->filesystem->getFile($path);
        if ($this->packages instanceof Packages) {
            return $this->packages->getUrl($file->getPath(), $file->getMountPoint());
        }
        return $this->packages->getUrl($file->getPath());
    }