TwigItemDataField

Namespace

Ceres\Extensions

Extends
Implements
Properties
Type Name Description

TwigFactory

$twig

``

$itemData

Methods
public __construct($twig)

TwigStyleScriptTagFilter constructor.

Parameters

Type

Name

Description

TwigFactory

$twig

public getName():string

Return the name of the extension. The name must be unique.

public getFunctions():array

Return a list of functions to add.

public getFilters():array

Return a list of filters to add.

public setItemDataBase($itemData)
Parameters

Type

Name

Description

``

$itemData

public formatAgeRestriction($age)
Parameters

Type

Name

Description

``

$age

public formatDate($date)
Parameters

Type

Name

Description

``

$date

public getGlobals():array

Return a map of global helper objects to add.