ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
TopParentItemRenderer.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
21 
25 
31 {
33  MakeSlateAsync::hash insteadof SlateSessionStateCode;
34  MakeSlateAsync::unhash insteadof SlateSessionStateCode;
35  }
36  use isSupportedTrait;
37 
41  public function getComponentWithContent(isItem $item) : Component
42  {
44  $slate = $f->mainControls()->slate()->combined($item->getTitle(), $this->getStandardSymbol($item));
48  foreach ($item->getChildren() as $child) {
49  $component = $child->getTypeInformation()->getRenderer()->getComponentForItem($child, false);
50  if ($this->isComponentSupportedForCombinedSlate($component)) {
51  $slate = $slate->withAdditionalEntry($component);
52  }
53  }
54 
55  return $slate;
56  }
57 }