ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ToolItemRenderer.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23use ILIAS\GlobalScreen\Collector\Renderer\DecoratorApplierTrait;
28
33{
35 use DecoratorApplierTrait;
36
37
38 #[\Override]
39 public function getComponentForItem(isItem $item, bool $with_content = false): Component
40 {
45 $symbol = $this->getStandardSymbol($item);
46
47 $slate = $this->ui_factory->mainControls()->slate()->legacy($item->getTitle(), $symbol, $item->getContent());
48
49 $slate = $this->addOnloadCode($slate, $item);
50
51 return $this->applyComponentDecorator($slate, $item);
52 }
53}
A component is the most general form of an entity in the UI.
Definition: Component.php:28