class AssetsExtension extends Twig_Extension
Twig extension for Symfony assets helper
__construct(ContainerInterface $container, RequestContext $requestContext = null) | ||
array | getFunctions() Returns a list of functions to add to the existing list. | |
string | getAssetUrl(string $path, string $packageName = null, bool $absolute = false, string|bool|null $version = 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. |
Returns a list of functions to add to the existing list.
Returns the public path of an asset.
Absolute paths (i.e. http://...) are returned unmodified.
Returns the version of the assets in a package.
Returns the name of the extension.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Bundle/TwigBundle/Extension/AssetsExtension.html