ILIAS  release_7 Revision v7.30-3-g800a261c036
ToolItemRenderer.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23use ILIAS\GlobalScreen\Collector\Renderer\ComponentDecoratorApplierTrait;
30
36{
38 use ComponentDecoratorApplierTrait;
40
46 public function getComponentForItem(isItem $item, bool $with_content = false) : Component
47 {
52 $symbol = $this->getStandardSymbol($item);
53
54 $slate = $this->ui_factory->mainControls()->slate()->legacy($item->getTitle(), $symbol, $item->getContent());
55
56 $slate = $this->addOnloadCode($slate, $item);
57
58 return $this->applyDecorator($slate, $item);
59 }
60}
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