ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ExtensionInterface.php
Go to the documentation of this file.
1<?php
2
3/*
4 * This file is part of Twig.
5 *
6 * (c) Fabien Potencier
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
18{
26 public function initRuntime(Twig_Environment $environment);
27
33 public function getTokenParsers();
34
40 public function getNodeVisitors();
41
47 public function getFilters();
48
54 public function getTests();
55
61 public function getFunctions();
62
68 public function getOperators();
69
77 public function getGlobals();
78
86 public function getName();
87}
88
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.
Definition: Environment.php:18
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.