ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
TopParentItemRenderer.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23use ILIAS\GlobalScreen\Collector\Renderer\isSupportedTrait;
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}
getComponentWithContent(isItem $item)
This is called in cases when the Full Item with it's content is needed, e.g.
A component is the most general form of an entity in the UI.
Definition: Component.php:28