GlobalsInterface
in
Enables usage of the deprecated Twig\Extension\AbstractExtension::getGlobals() method.
Explicitly implement this interface if you really need to implement the deprecated getGlobals() method in your extensions.
Tags
Table of Contents
- getGlobals() : array<string|int, mixed>
- Returns a list of global variables to add to the existing list.
Methods
getGlobals()
Returns a list of global variables to add to the existing list.
public
getGlobals() : array<string|int, mixed>
Return values
array<string|int, mixed> —An array of global variables