ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
TopParentItemRenderer.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
26 
32 {
34  MakeSlateAsync::hash insteadof SlateSessionStateCode;
35  MakeSlateAsync::unhash insteadof SlateSessionStateCode;
36  }
37  use isSupportedTrait;
38 
42  public function getComponentWithContent(isItem $item): Component
43  {
45  $slate = $f->mainControls()->slate()->combined($item->getTitle(), $this->getStandardSymbol($item));
46 
50  foreach ($item->getChildren() as $child) {
51  $component = $child->getTypeInformation()->getRenderer()->getComponentForItem($child, false);
52  if ($this->isComponentSupportedForCombinedSlate($component)) {
53  $slate = $slate->withAdditionalEntry($component);
54  }
55  }
56 
57  return $slate;
58  }
59 }
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...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getComponentWithContent(isItem $item)
This is called in cases when the Full Item with it&#39;s content is needed, e.g.