ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
GlyphRendererFactory.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 2017 Nils Haagen <nils.haagen@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4
6
9
11{
12 public function getRendererInContext(Component\Component $component, array $contexts)
13 {
14 if (in_array('BulkyButton', $contexts)) {
15 return new ButtonContextRenderer($this->ui_factory, $this->tpl_factory, $this->lng, $this->js_binding);
16 }
17 return new Renderer($this->ui_factory, $this->tpl_factory, $this->lng, $this->js_binding);
18 }
19}
An exception for terminatinating execution or to throw for unit testing.
getRendererInContext(Component\Component $component, array $contexts)
A component is the most general form of an entity in the UI.
Definition: Component.php:14