Documentation

GlobalsInterface

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
author

Fabien Potencier fabien@symfony.com

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

Search results