19 declare(strict_types=1);
65 $context_names = $this->getContextNames($contexts);
67 return $factory->getRendererInContext($component, $context_names);
75 if ($component instanceof
Glyph) {
78 if ($component instanceof
Icon) {
Loads renderers for components from the file system.
RendererFactory $icon_renderer_factory
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...
RendererFactory $default_renderer_factory
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
RendererFactory $field_renderer_factory
__construct(RendererFactory $default_renderer_factory, RendererFactory $glyph_renderer_factory, RendererFactory $icon_renderer_factory, RendererFactory $field_renderer_factory)
This is the interface that components should use if they want to load specific renderers.
getRendererFactoryFor(Component $component)
RendererFactory $glyph_renderer_factory
Loads renderers for components.
getRendererFor(Component $component, array $contexts)