ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
MenuRendererFactory.php
Go to the documentation of this file.
1<?php
2
18declare(strict_types=1);
19
21
25
30{
31 public function getRendererInContext(Component $component, array $contexts): ComponentRenderer
32 {
33 if (in_array('TreeSelectFieldInput', $contexts, true) ||
34 in_array('TreeMultiSelectFieldInput', $contexts, true)
35 ) {
36 return new FieldContextRenderer(
37 $this->ui_factory,
38 $this->tpl_factory,
39 $this->lng,
40 $this->js_binding,
41 $this->image_path_resolver,
42 $this->data_factory,
43 $this->help_text_retriever,
44 $this->upload_limit_resolver,
45 );
46 }
47
48 return parent::getRendererInContext($component, $contexts);
49 }
50}
Renders Drilldown Menu's in the Input\Field context, specifically used by the Tree (Multi) Select Fie...
getRendererInContext(Component $component, array $contexts)
@inheritdocs
A component is the most general form of an entity in the UI.
Definition: Component.php:28
An entity that renders components to a string output.