First array of unary operators, second array of binary operators */ function getOperators() { return []; } /** * Returns a list of global variables to add to the existing list. * * @return array An array of global variables * * @deprecated since 1.23 (to be removed in 2.0), implement Twig_Extension_GlobalsInterface instead */ function getGlobals() { return [ 'pl' => 'is awesome', ]; } /** * Returns a list of tests to add to the existing list. * * @return Twig_SimpleTest[] */ function getTests() { return []; } /** * Returns the token parser instances to add to the existing list. * * @return (Twig_TokenParserInterface|Twig_TokenParserBrokerInterface)[] */ function getTokenParsers() { return []; } /** * Returns the node visitor instances to add to the existing list. * * @return Twig_NodeVisitorInterface[] */ function getNodeVisitors() { return []; } }