89class_alias(
'Twig_ExtensionInterface',
'Twig\Extension\ExtensionInterface',
false);
90class_exists(
'Twig_Environment');
An exception for terminatinating execution or to throw for unit testing.
Stores the Twig configuration.
Interface implemented by extension classes.
getFilters()
Returns a list of filters to add to the existing list.
getTokenParsers()
Returns the token parser instances to add to the existing list.
getOperators()
Returns a list of operators to add to the existing list.
getFunctions()
Returns a list of functions to add to the existing list.
getTests()
Returns a list of tests to add to the existing list.
getNodeVisitors()
Returns the node visitor instances to add to the existing list.
initRuntime(Twig_Environment $environment)
Initializes the runtime environment.
getName()
Returns the name of the extension.
getGlobals()
Returns a list of global variables to add to the existing list.