TwigJsonDataContainer

It creates script tags for each provided item, at one point.

Namespace

Ceres\Extensions

Extends
Implements
Properties
Type Name Description

TwigFactory

$twig

The factory to render TWIG.

array

$dataStorage

Stored data used to create script tags.

Methods
public __construct($twig)

TwigJsonDataContainer constructor.

Parameters

Type

Name

Description

TwigFactory

$twig

The factory to render TWIG.

public getName():string

Return the name of the extension.

public getFilters():array

Return a list of filters to add.

public getFunctions():array

Return a list of functions to add.

public getJsonData():string

Return a string, including a sequence of script tags (HTML) for each item in the property dataStorage.

public getGlobals():array

Return a map of global helper objects to add.