CoreExtension extends AbstractExtension implements GlobalsInterface
Extends Twig functionality for the Core sprinkle.
Tags
Table of Contents
$services | ContainerInterface | |
---|---|---|
__construct() | Constructor. | mixed |
getName() | Get the name of this extension. | string |
getFunctions() | Adds Twig functions `getAlerts` and `translate`. | mixed |
getFilters() | Adds Twig filters `unescape`. | mixed |
getGlobals() | Adds Twig global variables `site` and `assets`. | mixed |
Properties
$services
protected
ContainerInterface
$services
Methods
__construct()
Constructor.
public
__construct(
$services :
ContainerInterface
)
: mixed
Parameters
- $services : ContainerInterface
The global container object, which holds all your services.
Return values
mixedgetName()
Get the name of this extension.
public
getName(
)
: string
Return values
stringgetFunctions()
Adds Twig functions `getAlerts` and `translate`.
public
getFunctions(
)
: mixed
Return values
mixedgetFilters()
Adds Twig filters `unescape`.
public
getFilters(
)
: mixed
Return values
mixedgetGlobals()
Adds Twig global variables `site` and `assets`.
public
getGlobals(
)
: mixed