RenderTwigTemplateEvent
extends AbstractEvent
in package
Table of Contents
Constants
- NAME = 'huh.utils.template.render'
Properties
- $context : array<string|int, mixed>
- The context template data.
- $template : string
- The name of the twig template.
Methods
- __construct() : mixed
- getContext() : array<string|int, mixed>
- getTemplate() : string
- setContext() : mixed
- setTemplate() : mixed
Constants
NAME
public
mixed
NAME
= 'huh.utils.template.render'
Properties
$context
The context template data.
protected
array<string|int, mixed>
$context
= []
$template
The name of the twig template.
protected
string
$template
Methods
__construct()
public
__construct(string $template[, array<string|int, mixed> $context = [] ]) : mixed
Parameters
- $template : string
- $context : array<string|int, mixed> = []
getContext()
public
getContext() : array<string|int, mixed>
Return values
array<string|int, mixed>getTemplate()
public
getTemplate() : string
Return values
stringsetContext()
public
setContext(array<string|int, mixed> $context) : mixed
Parameters
- $context : array<string|int, mixed>
setTemplate()
public
setTemplate(string $template) : mixed
Parameters
- $template : string