ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Loader.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24use LogicException;
25
29interface Loader
30{
37 public function getRendererFor(Component $component, array $contexts): ComponentRenderer;
38
42 public function getRendererFactoryFor(Component $component): RendererFactory;
43}
A component is the most general form of an entity in the UI.
Definition: Component.php:28
An entity that renders components to a string output.
Loads renderers for components.
Definition: Loader.php:30
getRendererFor(Component $component, array $contexts)
Get a renderer for a certain Component class.
getRendererFactoryFor(Component $component)
Get a factory for a renderer for a certain component class.
This is the interface that components should use if they want to load specific renderers.