class AssetsExtension extends Twig_Extension
deprecated
since 2.7, to be removed in 3.0. Use Symfony\Bridge\Twig\Extension\AssetExtension instead.
Twig extension for Symfony assets helper.
Methods
__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. | |
getName() {@inheritdoc} |
Details
__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.
Absolute paths (i.e. http://...) are returned unmodified.
int getAssetsVersion(string $packageName = null)
Returns the version of the assets in a package.
getName()
{@inheritdoc}
Please login to continue.