ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilMMLostItemRenderer.php
Go to the documentation of this file.
1<?php
2
6
13{
14
20 public function getComponentForItem(isItem $item) : Component
21 {
25 if ($item->hasChildren()) {
27
28 return $r->getComponentForItem($item);
29 }
30
31 return $this->ui_factory->legacy("{$item->getTypeInformation()->getTypeNameForPresentation()}");
32 }
33}
An exception for terminatinating execution or to throw for unit testing.
Class ilMMLostItemRenderer.
Class ilMMTopParentItemRenderer.
$r
Definition: example_031.php:79
A component is the most general form of an entity in the UI.
Definition: Component.php:14