30 $this->functions[$name] = $function;
43 $this->filters[$name] = $filter;
56 $this->visitors[] = $visitor;
69 $this->tokenParsers[] = $parser;
82 $this->globals[$name] = $value;
95 $this->tests[$name] = $test;
addTokenParser(Twig_TokenParserInterface $parser)
addFilter($name, $filter)
getFilters()
{Returns a list of filters to add to the existing list.array An array of filters} ...
addNodeVisitor(Twig_NodeVisitorInterface $visitor)
getFunctions()
{Returns a list of functions to add to the existing list.array An array of functions} ...
Interface implemented by token parsers.
getNodeVisitors()
{Returns the node visitor instances to add to the existing list.array An array of Twig_NodeVisitorInt...
getName()
{Returns the name of the extension.string The extension name}
getTests()
{Returns a list of tests to add to the existing list.array An array of tests}
addFunction($name, $function)
getGlobals()
{Returns a list of global variables to add to the existing list.array An array of global variables} ...
Twig_NodeVisitorInterface is the interface the all node visitor classes must implement.
getTokenParsers()
{Returns the token parser instances to add to the existing list.array An array of Twig_TokenParserInt...