AssetCompress\View\Helper\AssetCompressHelper::_getRoute PHP Method

_getRoute() protected method

This generates URLs that work with the development dispatcher filter.
protected _getRoute ( AssetTarget $file, string $base ) : string
$file MiniAsset\AssetTarget The build file you want to make a url for.
$base string The base path to fetch a url with.
return string Generated URL.
    protected function _getRoute(AssetTarget $file, $base)
    {
        $query = [];
        if ($file->isThemed()) {
            $query['theme'] = $this->theme;
        }
        $base = rtrim($base, '/') . '/';
        $query = empty($query) ? '' : '?' . http_build_query($query);
        return $base . $file->name() . $query;
    }