Jarves\AssetHandler\AssetInfo::getPath PHP Method

getPath() public method

public getPath ( ) : string
return string
    public function getPath()
    {
        return $this->path;
    }

Usage Example

Beispiel #1
0
    protected function getTag(AssetInfo $assetInfo)
    {
        if ($assetInfo->getPath()) {
            $path = $this->getAssetPath($assetInfo->getPath());
            $pubPath = $this->getPublicAssetPath($assetInfo->getPath());
            if (file_exists($path)) {
                $pubPath .= '?c=' . substr(md5(filemtime($path)), 0, 6);
            }
            return sprintf('<script type="text/javascript" src="%s"></script>', $pubPath);
        } else {
            return sprintf(<<<EOF
<script type="text/javascript">
%s
</script>
EOF
, $assetInfo->getContent());
        }
    }
All Usage Examples Of Jarves\AssetHandler\AssetInfo::getPath