ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
LinkListItemRenderer.php
Go to the documentation of this file.
1<?php
2
4
5use ILIAS\GlobalScreen\Collector\Renderer\isSupportedTrait;
9
16{
18 MakeSlateAsync::hash insteadof SlateSessionStateCode;
19 MakeSlateAsync::unhash insteadof SlateSessionStateCode;
20 }
21 use isSupportedTrait;
22
23
27 public function getComponentWithContent(isItem $item) : Component
28 {
29 $slate = $this->ui_factory->mainControls()->slate()->combined($item->getTitle(), $this->getStandardSymbol($item));
33 foreach ($item->getLinks() as $link) {
34 if (!$link->isVisible()) {
35 continue;
36 }
37 $link = $this->ui_factory->link()->bulky($this->getStandardSymbol($link), $link->getTitle(), $this->getURI($link->getAction()));
38 $slate = $slate->withAdditionalEntry($link);
39 }
40
41 return $slate;
42 }
43}
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