Property | Type | Description | |
---|---|---|---|
$container |
Method | Description | |
---|---|---|
__call ( string $name, array $arguments ) : mixed | Allow developers to call core php and WordPress functions using the fn namespace inside their templates. | |
__construct ( |
||
getFunctions ( ) : array | Twig_SimpleFunction[] | Register a list of functions available into Twig templates. | |
getGlobals ( ) : array | Register a global "fn" which can be used to call any WordPress or core PHP functions. | |
getName ( ) : string | Define the extension name. |
public __construct ( |
||
$container |
public getFunctions ( ) : array | Twig_SimpleFunction[] | ||
return | array | Twig_SimpleFunction[] |
public getGlobals ( ) : array | ||
return | array |