DocumentNodeRenderer
in package
implements
NodeRenderer
FinalYes
Table of Contents
Interfaces
Properties
- $renderer : TemplateRenderer
- $template : string
Methods
- __construct() : mixed
- render() : string
- supports() : bool
Properties
$renderer read-only
private
TemplateRenderer
$renderer
$template
private
string
$template
= 'structure/document.html.twig'
Methods
__construct()
public
__construct(TemplateRenderer $renderer) : mixed
Parameters
- $renderer : TemplateRenderer
render()
public
render(T $node, RenderContext $renderContext) : string
Parameters
- $node : T
- $renderContext : RenderContext
Return values
stringsupports()
public
supports(string $nodeFqcn) : bool
Parameters
- $nodeFqcn : string