AsseticExtension
extends Twig_Extension
in package
implements
Twig_Extension_GlobalsInterface
Interfaces, Classes and Traits
- Twig_Extension_GlobalsInterface
- Enables usage of the deprecated Twig\Extension\AbstractExtension::getGlobals() method.
Table of Contents
- $factory : mixed
- $functions : mixed
- $valueSupplier : mixed
- __construct() : mixed
- getFilterInvoker() : mixed
- getFilters() : array<string|int, TwigFilter>
- Returns a list of filters to add to the existing list.
- getFunctions() : mixed
- getGlobals() : mixed
- getName() : mixed
- getNodeVisitors() : array<string|int, NodeVisitorInterface>
- Returns the node visitor instances to add to the existing list.
- getOperators() : array<string|int, array<string|int, mixed>>
- Returns a list of operators to add to the existing list.
- getTests() : array<string|int, TwigTest>
- Returns a list of tests to add to the existing list.
- getTokenParsers() : mixed
Properties
$factory
protected
mixed
$factory
$functions
protected
mixed
$functions
$valueSupplier
protected
mixed
$valueSupplier
Methods
__construct()
public
__construct(AssetFactory $factory[, mixed $functions = array() ][, ValueSupplierInterface $valueSupplier = null ]) : mixed
Parameters
- $factory : AssetFactory
- $functions : mixed = array()
- $valueSupplier : ValueSupplierInterface = null
Return values
mixed —getFilterInvoker()
public
getFilterInvoker(mixed $function) : mixed
Parameters
- $function : mixed
Return values
mixed —getFilters()
Returns a list of filters to add to the existing list.
public
getFilters() : array<string|int, TwigFilter>
Return values
array<string|int, TwigFilter> —getFunctions()
public
getFunctions() : mixed
Return values
mixed —getGlobals()
public
getGlobals() : mixed
Return values
mixed —getName()
public
getName() : mixed
Return values
mixed —getNodeVisitors()
Returns the node visitor instances to add to the existing list.
public
getNodeVisitors() : array<string|int, NodeVisitorInterface>
Return values
array<string|int, NodeVisitorInterface> —getOperators()
Returns a list of operators to add to the existing list.
public
getOperators() : array<string|int, array<string|int, mixed>>
Return values
array<string|int, array<string|int, mixed>> —First array of unary operators, second array of binary operators
getTests()
Returns a list of tests to add to the existing list.
public
getTests() : array<string|int, TwigTest>
Return values
array<string|int, TwigTest> —getTokenParsers()
public
getTokenParsers() : mixed