TemplateContainer

Class TemplateContainer

Namespace

IO\Helper

Properties
Type Name Description

string

$template

array | Closure

$templateData

string

$templateKey

string

$contextClass

string

$pluginNamespace

Methods
public static get()
public setTemplate($template):TemplateContainer

Set the layout to use for current request.

Parameters

Type

Name

Description

string

$template

The template to use for current request.

public getTemplate()

Get the provided layout to use for current request.

public hasTemplate()

Check whether a separate layout plugin has set a template to use for the current request.

public getTemplateData()

Get the template data to pass to current template.

public setTemplateData($customData):TemplateContainer

Override template data used by LayoutController when rendering a template for current request.

Parameters

Type

Name

Description

mixed

$customData

public getTemplateKey():string
public setTemplateKey($templateKey):Helper
Parameters

Type

Name

Description

string

$templateKey

public setContext($contextClass)
Parameters

Type

Name

Description

``

$contextClass

public getContext()
public withData($data, $identifier):TemplateContainer

Add additional template data to the existing values.

Parameters

Type

Name

Description

mixed

$data

The data to add to map.

string

$identifier

An identifying string to access the given data