ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
TopParentItemRenderer.php
Go to the documentation of this file.
1 <?php
2 
3 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 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...