ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
TreeToolItemRenderer.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
26
32{
38 #[\Override]
39 public function getComponentForItem(isItem $item, bool $with_content = false): Component
40 {
41 global $DIC;
46 $symbol = $this->getStandardSymbol($item);
47
48 return $this->ui_factory->mainControls()->slate()->legacy($item->getTitle(), $symbol, $this->ui_factory->legacy()->content($DIC->ui()->renderer()->render([$item->getTree()])));
49 }
50}
A component is the most general form of an entity in the UI.
Definition: Component.php:28
global $DIC
Definition: shib_login.php:26