ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ComponentRenderer.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 2016 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4 
6 
9 
15 interface ComponentRenderer {
25  public function render(Component $component, Renderer $default_renderer);
26 
33  public function registerResources(ResourceRegistry $registry);
34 }
Registry for resources required by rendered output like Javascript or CSS.
An entity that renders components to a string output.
Definition: Renderer.php:12
An entity that renders components to a string output.
registerResources(ResourceRegistry $registry)
Announce resources this renderer requires.
render(Component $component, Renderer $default_renderer)
Render the component if possible and delegate additional rendering to the default_renderer.