UserFrosting API

CoreExtension extends AbstractExtension implements GlobalsInterface

Extends Twig functionality for the Core sprinkle.

Tags
author

Alex Weissman (https://alexanderweissman.com)

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

Methods

__construct()

Constructor.

public __construct( $services : ContainerInterface ) : mixed
Parameters
$services : ContainerInterface

The global container object, which holds all your services.

Return values
mixed

getName()

Get the name of this extension.

public getName( ) : string
Return values
string

getFunctions()

Adds Twig functions `getAlerts` and `translate`.

public getFunctions( ) : mixed
Return values
mixed

getFilters()

Adds Twig filters `unescape`.

public getFilters( ) : mixed
Return values
mixed

getGlobals()

Adds Twig global variables `site` and `assets`.

public getGlobals( ) : mixed
Return values
mixed

Search results