ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
LostItemRenderer.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25
31{
35 #[\Override]
36 public function getComponentWithContent(isItem $item): Component
37 {
41 if ($item->hasChildren()) {
42 $r = new TopParentItemRenderer();
43
44 return $r->getComponentForItem($item);
45 }
46
47 return $this->ui_factory->button()->bulky($this->getStandardSymbol($item), "{$item->getTypeInformation()->getTypeNameForPresentation()}", "");
48 }
49}
getComponentWithContent(isItem $item)
This is called in cases when the Full Item with it's content is needed, e.g.
A component is the most general form of an entity in the UI.
Definition: Component.php:28