AssetsHelper deprecated
class AssetsHelper extends CoreAssetsHelper
deprecated
AssetsHelper helps manage asset URLs.
Usage:
Methods
__construct(string $basePath = null, string|array $baseUrls = array(), string $version = null, string $format = null, array $namedPackages = array())
Constructor.
from CoreAssetsHelper
string
getVersion(string $packageName = null)
Gets the version to add to public URL.
from CoreAssetsHelper
string
getUrl(string $path, string $packageName = null, string|bool|null $version = null)
Returns the public path.
from CoreAssetsHelper
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 44
__construct(string $basePath = null, string|array $baseUrls = array(), string $version = null, string $format = null, array $namedPackages = array())
Constructor.
in CoreAssetsHelper at line line 57
setDefaultPackage(PackageInterface $defaultPackage)
Sets the default package.
in CoreAssetsHelper at line line 68
addPackage(string $name, PackageInterface $package)
Adds an asset package to the helper.
in CoreAssetsHelper at line line 82
PackageInterface
getPackage(string $name = null)
Returns an asset package.
in CoreAssetsHelper at line line 102
string
getVersion(string $packageName = null)
Gets the version to add to public URL.
in CoreAssetsHelper 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.
in CoreAssetsHelper at line line 128
string
getName()
Returns the canonical name of this helper.