ILIAS  trunk Revision v11.0_alpha-1866-gfa368f7776e
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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  #[\Override]
43  public function getComponentWithContent(isItem $item): Component
44  {
46  $slate = $f->mainControls()->slate()->combined($item->getTitle(), $this->getStandardSymbol($item));
47 
51  foreach ($item->getChildren() as $child) {
52  $component = $child->getTypeInformation()->getRenderer()->getComponentForItem($child, false);
53  if ($this->isComponentSupportedForCombinedSlate($component)) {
54  $slate = $slate->withAdditionalEntry($component);
55  }
56  }
57 
58  return $slate;
59  }
60 }
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.