ILIAS  release_7 Revision v7.30-3-g800a261c036
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 }
ui()
Definition: ui.php:5