ILIAS  release_7 Revision v7.30-3-g800a261c036
TreeToolItemRenderer.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
21
26
32{
38 public function getComponentForItem(isItem $item, bool $with_content = false) : Component
39 {
40 global $DIC;
45 $symbol = $this->getStandardSymbol($item);
46
47 return $this->ui_factory->mainControls()->slate()->legacy($item->getTitle(), $symbol, $this->ui_factory->legacy($DIC->ui()->renderer()->render([$item->getTree()])));
48 }
49}
An exception for terminatinating execution or to throw for unit testing.
getComponentForItem(isItem $item, bool $with_content=true)
@inheritDoc
global $DIC
Definition: goto.php:24
A component is the most general form of an entity in the UI.
Definition: Component.php:14