ILIAS  release_7 Revision v7.30-3-g800a261c036
TopParentItemRenderer.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
21
22use ILIAS\GlobalScreen\Collector\Renderer\isSupportedTrait;
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}
An exception for terminatinating execution or to throw for unit testing.
A component is the most general form of an entity in the UI.
Definition: Component.php:14