ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
MenuRendererFactory.php
Go to the documentation of this file.
1 <?php
2 
18 declare(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 }
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...
getRendererInContext(Component $component, array $contexts)
Get a renderer based on the current context.
Renders Drilldown Menu&#39;s in the Input context, specifically used by the Tree (Multi) Select Field...