ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
TopParentItemRenderer.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...