AssetsExtension deprecated
class AssetsExtension extends Twig_Extension
deprecated
Twig extension for Symfony assets helper.
Methods
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
at line line 31
__construct(ContainerInterface $container, RequestContext $requestContext = null)
at line line 42
array
getFunctions()
Returns a list of functions to add to the existing list.
at line line 62
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.
at line line 80
int
getAssetsVersion(string $packageName = null)
Returns the version of the assets in a package.
at line line 88
getName()
{@inheritdoc}