UrlPackage deprecated
class UrlPackage extends Package
deprecated
The URL packages adds a version and a base URL to asset URLs.
Methods
__construct(string|array $baseUrls = array(), string $version = null, string $format = null)
Constructor.
string
getUrl(string $path, string|bool|null $version = null)
Returns an absolute or root-relative public path.
string
getBaseUrl(string $path)
Returns the base URL for a path.
Details
at line line 34
__construct(string|array $baseUrls = array(), string $version = null, string $format = null)
Constructor.
in Package at line line 43
string
getVersion()
Returns the asset package version.
at line line 51
string
getUrl(string $path, string|bool|null $version = null)
Returns an absolute or root-relative public path.
at line line 73
string
getBaseUrl(string $path)
Returns the base URL for a path.