ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
TopParentItemRenderer.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
27 
33 {
37  protected function getSpecificComponentForItem(isItem $item): Component
38  {
42  $component = $this->ui->factory()->mainControls()->slate()->combined($item->getTitle(), $this->buildIcon($item));
43  foreach ($item->getChildren() as $child) {
48  $component_for_item = $child->getRenderer()->getComponentForItem($child);
49  if ($this->isComponentSupportedForCombinedSlate($component_for_item)) {
50  $component = $component->withAdditionalEntry($component_for_item);
51  }
52  }
53 
54  return $component;
55  }
56 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...