ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
LostItemRenderer.php
Go to the documentation of this file.
1<?php
2
4
7
14{
15
19 public function getComponentWithContent(isItem $item) : Component
20 {
24 if ($item->hasChildren()) {
25 $r = new TopParentItemRenderer();
26
27 return $r->getComponentForItem($item, true);
28 }
29
30 return $this->ui_factory->button()->bulky($this->getStandardSymbol($item), "{$item->getTypeInformation()->getTypeNameForPresentation()}", "");
31 }
32}
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