class UrlPackage extends Package
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 |
getVersion()
Returns the asset package version. |
from Package |
| string |
getUrl(string $path)
Returns an absolute or root-relative public path. |
|
| string |
getBaseUrl($path)
Returns the base URL for a path. |
Details
at line 30
public
__construct(string|array $baseUrls = array(), string $version = null, string $format = null)
Constructor.
in Package at line 36
public string
getVersion()
Returns the asset package version.
at line 44
public string
getUrl(string $path)
Returns an absolute or root-relative public path.
at line 64
public string
getBaseUrl($path)
Returns the base URL for a path.