CoreAssetsHelper deprecated
class CoreAssetsHelper extends Helper implements PackageInterface
deprecated
CoreAssetsHelper helps manage asset URLs.
Usage:
Methods
getPackage(string $name = null)
Returns an asset package.
string
getVersion(string $packageName = null)
Gets the version to add to public URL.
string
getUrl(string $path, string $packageName = null, string|bool|null $version = null)
Returns the public path.
string
getName()
Returns the canonical name of this helper.
Details
in Helper at line line 31
setCharset(string $charset)
Sets the default charset.
in Helper at line line 41
string
getCharset()
Gets the default charset.
at line line 43
__construct(PackageInterface $defaultPackage, array $namedPackages = array())
Constructor.
at line line 57
setDefaultPackage(PackageInterface $defaultPackage)
Sets the default package.
at line line 68
addPackage(string $name, PackageInterface $package)
Adds an asset package to the helper.
at line line 82
PackageInterface
getPackage(string $name = null)
Returns an asset package.
at line line 102
string
getVersion(string $packageName = null)
Gets the version to add to public URL.
at line line 118
string
getUrl(string $path, string $packageName = null, string|bool|null $version = null)
Returns the public path.
Absolute paths (i.e. http://...) are returned unmodified.
at line line 128
string
getName()
Returns the canonical name of this helper.