This interface describes a view template.

 Methods

Retrieve a value from the template.

get(string $name) : mixed

Parameters

$name

string

The name of the value to retrieve.

Returns

mixed

Return the template data as array.

getData() : array

Returns

arrayThe data array

Parse the template file and print it to the screen.

output() : void

Parse the template file and return it as string.

parse() : string

Returns

stringThe template markup

Add the value to the template.

set(string $name, mixed $value) : \ContaoCommunityAlliance\DcGeneral\View\ViewTemplateInterface

Parameters

$name

string

Name of the value.

$value

mixed

The value to add to the template.

Returns

Set the template data from an array.

setData(array $data) : \ContaoCommunityAlliance\DcGeneral\View\ViewTemplateInterface

Parameters

$data

array

The data array.

Returns