ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
TopParentItemRenderer.php
Go to the documentation of this file.
1 <?php
2 
4 
8 
14 {
16  MakeSlateAsync::hash insteadof SlateSessionStateCode;
17  MakeSlateAsync::unhash insteadof SlateSessionStateCode;
18  }
19  use isSupportedTrait;
20 
24  public function getComponentWithContent(isItem $item) : Component
25  {
27  $slate = $f->mainControls()->slate()->combined($item->getTitle(), $this->getStandardSymbol($item));
31  foreach ($item->getChildren() as $child) {
32  $component = $child->getTypeInformation()->getRenderer()->getComponentForItem($child, false);
33  if ($this->isComponentSupportedForCombinedSlate($component)) {
34  $slate = $slate->withAdditionalEntry($component);
35  }
36  }
37 
38  return $slate;
39  }
40 }