ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
RendererFactory.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 2017 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4 
6 
7 use \ILIAS\UI\Component\Component;
8 
13 interface RendererFactory
14 {
24  public function getRendererInContext(Component $component, array $contexts);
25 
26  // TODO: This is missing some method to enumerate contexts and the different
27  // renderers. This would be needed to show different renderings in the Kitchen
28  // Sink.
29 
36  public function getJSBinding();
37 }
Create styles array
The data for the language used.
This is the interface that components should use if they want to load specific renderers.
getRendererInContext(Component $component, array $contexts)
Get a renderer based on the current context.
getJSBinding()
Todo: This was implemented to fix 21830.