ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
TopParentItemRenderer.php
Go to the documentation of this file.
1<?php
2
4
5use ILIAS\GlobalScreen\Collector\Renderer\isSupportedTrait;
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}
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