ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
LostItemRenderer.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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 }