DefaultNodeRenderer
in package
implements
NodeRenderer, NodeRendererFactoryAware
FinalYes
Table of Contents
Interfaces
Properties
- $logger : LoggerInterface
- $nodeRendererFactory : NodeRendererFactory|null
Methods
- __construct() : mixed
- render() : string
- setNodeRendererFactory() : void
- supports() : bool
Properties
$logger read-only
private
LoggerInterface
$logger
$nodeRendererFactory
private
NodeRendererFactory|null
$nodeRendererFactory
= null
Methods
__construct()
public
__construct(LoggerInterface $logger) : mixed
Parameters
- $logger : LoggerInterface
render()
public
render(Node $node, RenderContext $renderContext) : string
Parameters
- $node : Node
- $renderContext : RenderContext
Return values
stringsetNodeRendererFactory()
public
setNodeRendererFactory(NodeRendererFactory $nodeRendererFactory) : void
Parameters
- $nodeRendererFactory : NodeRendererFactory
supports()
public
supports(string $nodeFqcn) : bool
Parameters
- $nodeFqcn : string