ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
TreeToolItemRenderer.php
Go to the documentation of this file.
1<?php
2
4
9
16{
17
25 public function getComponentForItem(isItem $item, bool $with_content = false) : Component
26 {
27 global $DIC;
32 $symbol = $this->getStandardSymbol($item);
33
34 return $this->ui_factory->mainControls()->slate()->legacy($item->getTitle(), $symbol, $this->ui_factory->legacy($DIC->ui()->renderer()->render([$item->getTree()])));
35 }
36}
An exception for terminatinating execution or to throw for unit testing.
getComponentForItem(isItem $item, bool $with_content=true)
@inheritDoc
A component is the most general form of an entity in the UI.
Definition: Component.php:14
$DIC
Definition: xapitoken.php:46