ILIAS  release_8 Revision v8.23
Loader.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
22 
24 use LogicException;
25 
29 interface Loader
30 {
37  public function getRendererFor(Component $component, array $contexts): ComponentRenderer;
38 
42  public function getRendererFactoryFor(Component $component): RendererFactory;
43 }
An entity that renders components to a string output.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getRendererFactoryFor(Component $component)
Get a factory for a renderer for a certain component class.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getRendererFor(Component $component, array $contexts)
Get a renderer for a certain Component class.
This is the interface that components should use if they want to load specific renderers.
Loads renderers for components.
Definition: Loader.php:29