ILIAS  release_7 Revision v7.30-3-g800a261c036
RepositoryLinkItemRenderer.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
21
22use ILIAS\GlobalScreen\Collector\Renderer\ComponentDecoratorApplierTrait;
26
31{
32 use ComponentDecoratorApplierTrait;
33
37 public function getComponentWithContent(isItem $item) : Component
38 {
39 if ($item instanceof isInterchangeableItem && !$item->getParent()) {
40 return $this->ui_factory->link()->bulky($this->getStandardSymbol($item), $item->getTitle(), $this->getURI($item->getAction()));
41 } else {
42 return $this->ui_factory->link()->bulky($this->getStandardSymbol($item), $item->getTitle(), $this->getURI($item->getAction()));
43 }
44 }
45}
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