DotsUnited\BundleFu\Bundle::getJsBundlePath PHP Method

getJsBundlePath() public method

Get javascript bundle path.
public getJsBundlePath ( ) : string
return string
    public function getJsBundlePath()
    {
        $cacheDir = $this->getJsCachePath();
        if ($this->isRelativePath($cacheDir)) {
            $cacheDir = $this->getDocRoot() . DIRECTORY_SEPARATOR . $cacheDir;
        }
        $name = $this->getName();
        if (null === $name) {
            $name = sprintf('bundle_%s', $this->getJsFileList()->getHash());
        } elseif (strpos($name, '%s') !== false) {
            $name = sprintf($name, $this->getJsFileList()->getHash());
        }
        return sprintf("%s%s%s.js", $cacheDir, DIRECTORY_SEPARATOR, $name);
    }