abstract class Twig_Extension implements Twig_ExtensionInterface
Methods
|
initRuntime(Twig_Environment $environment)
Initializes the runtime environment. |
||
| array |
getTokenParsers()
Returns the token parser instances to add to the existing list. |
|
| array |
getNodeVisitors()
Returns the node visitor instances to add to the existing list. |
|
| array |
getFilters()
Returns a list of filters to add to the existing list. |
|
| array |
getTests()
Returns a list of tests to add to the existing list. |
|
| array |
getFunctions()
Returns a list of functions to add to the existing list. |
|
| array |
getOperators()
Returns a list of operators to add to the existing list. |
|
| array |
getGlobals()
Returns a list of global variables to add to the existing list. |
Details
at line 20
public
initRuntime(Twig_Environment $environment)
Initializes the runtime environment.
This is where you can load some file that contains filter functions for instance.
at line 29
public array
getTokenParsers()
Returns the token parser instances to add to the existing list.
at line 39
public array
getNodeVisitors()
Returns the node visitor instances to add to the existing list.
at line 49
public array
getFilters()
Returns a list of filters to add to the existing list.
at line 59
public array
getTests()
Returns a list of tests to add to the existing list.
at line 69
public array
getFunctions()
Returns a list of functions to add to the existing list.
at line 79
public array
getOperators()
Returns a list of operators to add to the existing list.
at line 89
public array
getGlobals()
Returns a list of global variables to add to the existing list.