ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
TopParentItemRenderer.php
Go to the documentation of this file.
2 
6 
13 {
14 
18  protected function getSpecificComponentForItem(isItem $item) : Component
19  {
23  $component = $this->ui->factory()->mainControls()->slate()->combined($item->getTitle(), $item->getSymbol());
24  foreach ($item->getChildren() as $child) {
28  $component_for_item = $child->getRenderer()->getComponentForItem($child);
29  if ($this->isComponentSupportedForCombinedSlate($component_for_item)) {
30  $component = $component->withAdditionalEntry($component_for_item);
31  }
32  }
33 
34  return $component;
35  }
36 }
ui()
Definition: ui.php:5