Craft Themes (3.x)

RenderEvent extends Event
in package

Table of Contents

$render  : bool
Render this element or not
$templates  : array<string|int, string>
$variables  : array<string|int, mixed>
addVariable()  : RenderEvent
Add a variable to the list of variables
appendTemplate()  : RenderEvent
Append a template to the list of templates
prependTemplate()  : RenderEvent
Prepend a template to the list of templates

Properties

$render

Render this element or not

public bool $render = true

$templates

public array<string|int, string> $templates

$variables

public array<string|int, mixed> $variables

Methods

addVariable()

Add a variable to the list of variables

public addVariable(string $name, mixed $value) : RenderEvent
Parameters
$name : string
$value : mixed
Return values
RenderEvent

appendTemplate()

Append a template to the list of templates

public appendTemplate(string $template) : RenderEvent
Parameters
$template : string
Return values
RenderEvent

prependTemplate()

Prepend a template to the list of templates

public prependTemplate(string $template) : RenderEvent
Parameters
$template : string
Return values
RenderEvent

Search results