ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
TopParentItemRenderer.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25
31{
35 protected function getSpecificComponentForItem(isItem $item): Component
36 {
40 $component = $this->ui->factory()->mainControls()->slate()->combined($item->getTitle(), $this->buildIcon($item));
41 foreach ($item->getChildren() as $child) {
46 $component_for_item = $child->getRenderer()->getComponentForItem($child);
47 if ($this->isComponentSupportedForCombinedSlate($component_for_item)) {
48 $component = $component->withAdditionalEntry($component_for_item);
49 }
50 }
51
52 return $component;
53 }
54}
A component is the most general form of an entity in the UI.
Definition: Component.php:28