AssetsHelper deprecated

class AssetsHelper extends CoreAssetsHelper deprecated since 2.7, will be removed in 3.0. Use the Asset component instead. AssetsHelper helps manage asset URLs. Usage: Methods setCharset(string $charset) Sets the default charset. from Helper string getCharset() Gets the default charset. from Helper __construct(string $basePath = null, string|array $baseUrls = array(), string $version = null, string $format = null, array $namedPackages = array()) Constructor. setDefau

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::getName()

getName() {@inheritdoc}

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::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

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

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

AssetExtension::getName()

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

AssetExtension::getFunctions()

getFunctions() {@inheritdoc}

AssetExtension::getAssetVersion()

string getAssetVersion(string $path, string $packageName = null) Returns the version of an asset. Parameters string $path A public path string $packageName The name of the asset package to use Return Value string The asset version