TemplateNodeRenderer
in package
implements
NodeRenderer
FinalYes
Table of Contents
Interfaces
Properties
- $nodeClass : string
- $renderer : TemplateRenderer
- $template : string
Methods
- __construct() : mixed
- render() : string
- supports() : bool
Properties
$nodeClass read-only
private
string
$nodeClass
$renderer read-only
private
TemplateRenderer
$renderer
$template read-only
private
string
$template
Methods
__construct()
public
__construct(TemplateRenderer $renderer, string $template, T> $nodeClass) : mixed
Parameters
- $renderer : TemplateRenderer
- $template : string
- $nodeClass : T>
render()
public
render(T $node, RenderContext $renderContext) : string
Parameters
- $node : T
- $renderContext : RenderContext
Return values
stringsupports()
public
supports(string $nodeFqcn) : bool
Parameters
- $nodeFqcn : string