ILIAS  release_7 Revision v7.30-3-g800a261c036
FieldRendererFactory.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 2018 Thomas Famula <famula@leifos.de> Extended GPL, see docs/LICENSE */
4
6
9
11{
12 public function getRendererInContext(Component\Component $component, array $contexts)
13 {
14 if (in_array('StandardFilterContainerInput', $contexts)) {
15 return new FilterContextRenderer(
16 $this->ui_factory,
17 $this->tpl_factory,
18 $this->lng,
19 $this->js_binding,
20 $this->refinery,
21 $this->image_path_resolver
22 );
23 }
24 return new Renderer(
25 $this->ui_factory,
26 $this->tpl_factory,
27 $this->lng,
28 $this->js_binding,
29 $this->refinery,
30 $this->image_path_resolver
31 );
32 }
33}
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