ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
LinkListItemRenderer.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 {
45 $slate = $this->ui_factory->mainControls()->slate()->combined($item->getTitle(), $this->getStandardSymbol($item));
49 foreach ($item->getLinks() as $link) {
50 if (!$link->isVisible()) {
51 continue;
52 }
53 $link = $this->ui_factory->link()->bulky($this->getStandardSymbol($link), $link->getTitle(), $this->getURI($link->getAction()));
54 $slate = $slate->withAdditionalEntry($link);
55 }
56
57 return $slate;
58 }
59}
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