class AssetsExtension extends Twig_Extension
Twig extension for Symfony assets helper
Methods
| __construct(ContainerInterface $container) | ||
| array |
getFunctions()
Returns a list of functions to add to the existing list. |
|
| string |
getAssetUrl(string $path, string $packageName = null)
Returns the public path of an asset. |
|
| int |
getAssetsVersion(string $packageName = null)
Returns the version of the assets in a package. |
|
| string |
getName()
Returns the name of the extension. |
Details
at line 25
public
__construct(ContainerInterface $container)
at line 35
public array
getFunctions()
Returns a list of functions to add to the existing list.
at line 53
public string
getAssetUrl(string $path, string $packageName = null)
Returns the public path of an asset.
Absolute paths (i.e. http://...) are returned unmodified.
at line 65
public int
getAssetsVersion(string $packageName = null)
Returns the version of the assets in a package.
at line 75
public string
getName()
Returns the name of the extension.