ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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}
An exception for terminatinating execution or to throw for unit testing.
A component is the most general form of an entity in the UI.
Definition: Component.php:14
ui()
Definition: ui.php:5