ILIAS  release_8 Revision v8.24
TopParentItemRenderer.php
Go to the documentation of this file.
1<?php
2
19declare(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}
A component is the most general form of an entity in the UI.
Definition: Component.php:28
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...