1 <?php declare(strict_types=1);
68 $root = $root ?? $this;
69 return $this->
default->
render($component, $root);
77 $root = $root ?? $this;
78 return $this->
manipulateRendering($component, $root) ?? $this->
default->render($component, $root);
86 $root = $root ?? $this;
An entity that renders components to a string output.
render($component, ?Renderer $root=null)
Render given component.
renderAsync($component, ?Renderer $root=null)
Same as render, except that this version also returns any javascript code bound to the on load event...
renderDefault($component, ?Renderer $root=null)
Renders the component by default.
manipulateAsyncRendering($component, Renderer $root)
Manipulates the async Rendering separately if needed.
__construct(Renderer $default)
withAdditionalContext(Component $context)
Get a new renderer with an additional context.A context makes it possible to use another renderer for...
render($component, ?Renderer $root=null)
Render given component.If an array of components is passed, this method returns a concatenated output...
manipulateRendering($component, Renderer $root)
Manipulates the rendering of one or multiple components by appending, prepending or exchanging their ...