\Twig\ExtensionGlobalsInterface

Enables usage of the deprecated Twig_Extension::getGlobals() method.

Explicitly implement this interface if you really need to implement the deprecated getGlobals() method in your extensions.

Summary

Methods
Constants
getGlobals()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getGlobals()

getGlobals() : array

Returns a list of global variables to add to the existing list.

Returns

array —

An array of global variables