ILIAS  release_7 Revision v7.30-3-g800a261c036
LostItemRenderer.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
21
24
30{
34 public function getComponentWithContent(isItem $item) : Component
35 {
39 if ($item->hasChildren()) {
40 $r = new TopParentItemRenderer();
41
42 return $r->getComponentForItem($item);
43 }
44
45 return $this->ui_factory->button()->bulky($this->getStandardSymbol($item), "{$item->getTypeInformation()->getTypeNameForPresentation()}", "");
46 }
47}
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