AssetExtension
class AssetExtension extends Twig_Extension
Twig extension for the Symfony Asset component.
Methods
getFunctions()
{@inheritdoc}
string
getAssetUrl(string $path, string $packageName = null)
Returns the public url/path of an asset.
string
getAssetVersion(string $path, string $packageName = null)
Returns the version of an asset.
string
getName()
Returns the name of the extension.
Details
at line line 25
__construct(Packages $packages)
at line line 33
getFunctions()
{@inheritdoc}
at line line 52
string
getAssetUrl(string $path, string $packageName = null)
Returns the public url/path of an asset.
If the package used to generate the path is an instance of UrlPackage, you will always get a URL and not a path.
at line line 65
string
getAssetVersion(string $path, string $packageName = null)
Returns the version of an asset.
at line line 75
string
getName()
Returns the name of the extension.