AssetsHelper::getName()

string getName() Returns the canonical name of this helper. Return Value string The canonical name

AssetsExtension deprecated::getFunctions()

array getFunctions() Returns a list of functions to add to the existing list. Return Value array An array of functions

AssetsExtension deprecated::getAssetsVersion()

int getAssetsVersion(string $packageName = null) Returns the version of the assets in a package. Parameters string $packageName Return Value int

AssetsExtension deprecated::getName()

getName() {@inheritdoc}

AssetsExtension deprecated

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) R

AssetsHelper

class AssetsHelper extends Helper AssetsHelper helps manage asset URLs. Methods setCharset(string $charset) Sets the default charset. from Helper string getCharset() Gets the default charset. from Helper __construct(Packages $packages) string getUrl(string $path, string $packageName = null) Returns the public url/path of an asset. string getVersion(string $path, string $packageName = null) Returns the version of an asset. string getName() Returns the canonical nam

AssetsExtension deprecated::getAssetUrl()

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. Parameters string $path A public path string $packageName The name of the asset package to use bool $absolute Whether to return an absolute URL or a relative one string|bool|null $version A specific version Return Value string A public path which takes into account th

AssetExtension::getName()

string getName() Returns the name of the extension. Return Value string The extension name

AssetExtension

class AssetExtension extends Twig_Extension Twig extension for the Symfony Asset component. Methods __construct(Packages $packages) 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 __construct(Packa

AssetExtension::getAssetUrl()

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. Parameters string $path A public path string $packageName The name of the asset package to use Return Value string The public path of the asset