TwigTemplateRenderer
in package
implements
TemplateRenderer
FinalYes
Table of Contents
Interfaces
Properties
Methods
- __construct() : mixed
- isTemplateFound() : bool
- renderTemplate() : string
Properties
$environmentBuilder read-only
private
EnvironmentBuilder
$environmentBuilder
Methods
__construct()
public
__construct(EnvironmentBuilder $environmentBuilder) : mixed
Parameters
- $environmentBuilder : EnvironmentBuilder
isTemplateFound()
public
isTemplateFound(RenderContext $context, string $template) : bool
Parameters
- $context : RenderContext
- $template : string
Return values
boolrenderTemplate()
public
renderTemplate(RenderContext $context, string $template[, array<string, mixed> $params = [] ]) : string
Parameters
- $context : RenderContext
- $template : string
- $params : array<string, mixed> = []