TemplateWrapper
in package
FinalYes
Exposes a template to userland.
Tags
Table of Contents
Properties
Methods
- display() : mixed
- displayBlock() : mixed
- getBlockNames() : array<string|int, string>
- getSourceContext() : Source
- getTemplateName() : string
- hasBlock() : bool
- render() : string
- renderBlock() : string
Properties
$env
private
mixed
$env
$template
private
mixed
$template
Methods
display()
public
display([array<string|int, mixed> $context = [] ]) : mixed
Parameters
- $context : array<string|int, mixed> = []
displayBlock()
public
displayBlock(string $name[, array<string|int, mixed> $context = [] ]) : mixed
Parameters
- $name : string
- $context : array<string|int, mixed> = []
getBlockNames()
public
getBlockNames([array<string|int, mixed> $context = [] ]) : array<string|int, string>
Parameters
- $context : array<string|int, mixed> = []
Return values
array<string|int, string> —An array of defined template block names
getSourceContext()
public
getSourceContext() : Source
Return values
SourcegetTemplateName()
public
getTemplateName() : string
Return values
stringhasBlock()
public
hasBlock(string $name[, array<string|int, mixed> $context = [] ]) : bool
Parameters
- $name : string
- $context : array<string|int, mixed> = []
Return values
boolrender()
public
render([array<string|int, mixed> $context = [] ]) : string
Parameters
- $context : array<string|int, mixed> = []
Return values
stringrenderBlock()
public
renderBlock(string $name[, array<string|int, mixed> $context = [] ]) : string
Parameters
- $name : string
- $context : array<string|int, mixed> = []