ILIAS  release_8 Revision v8.24
IconRendererFactory.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
26
28{
29 public const USE_BUTTON_CONTEXT_FOR = [
30 'BulkyButton',
31 'BulkyLink'
32 ];
33
34 public function getRendererInContext(Component\Component $component, array $contexts): ComponentRenderer
35 {
36 if (count(array_intersect(self::USE_BUTTON_CONTEXT_FOR, $contexts)) > 0) {
37 return new ButtonContextRenderer(
38 $this->ui_factory,
39 $this->tpl_factory,
40 $this->lng,
41 $this->js_binding,
42 $this->refinery,
43 $this->image_path_resolver,
44 $this->data_factory
45 );
46 }
47 return new Renderer(
48 $this->ui_factory,
49 $this->tpl_factory,
50 $this->lng,
51 $this->js_binding,
52 $this->refinery,
53 $this->image_path_resolver,
54 $this->data_factory
55 );
56 }
57}
getRendererInContext(Component\Component $component, array $contexts)
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...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...