ILIAS  release_7 Revision v7.30-3-g800a261c036
LinkListItemRenderer.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
21
22use ILIAS\GlobalScreen\Collector\Renderer\isSupportedTrait;
27
33{
35 MakeSlateAsync::hash insteadof SlateSessionStateCode;
36 MakeSlateAsync::unhash insteadof SlateSessionStateCode;
37 }
38 use isSupportedTrait;
39
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}
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