GeneralDirectiveNodeRenderer
in package
implements
NodeRenderer
FinalYes
Table of Contents
Interfaces
Properties
- $logger : LoggerInterface
- $renderer : TemplateRenderer
Methods
- __construct() : mixed
- render() : string
- supports() : bool
- getTemplateName() : string
Properties
$logger read-only
private
LoggerInterface
$logger
$renderer read-only
private
TemplateRenderer
$renderer
Methods
__construct()
public
__construct(TemplateRenderer $renderer, LoggerInterface $logger) : mixed
Parameters
- $renderer : TemplateRenderer
- $logger : LoggerInterface
render()
public
render(Node $node, RenderContext $renderContext) : string
Parameters
- $node : Node
- $renderContext : RenderContext
Return values
stringsupports()
public
supports(string $nodeFqcn) : bool
Parameters
- $nodeFqcn : string
Return values
boolgetTemplateName()
private
getTemplateName(string $directiveName) : string
Parameters
- $directiveName : string