ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ToolItemRenderer.php
Go to the documentation of this file.
1<?php
2
4
5use ILIAS\GlobalScreen\Collector\Renderer\ComponentDecoratorApplierTrait;
13
20{
22 use ComponentDecoratorApplierTrait;
24
32 public function getComponentForItem(isItem $item, bool $with_content = false) : Component
33 {
38 $symbol = $this->getStandardSymbol($item);
39
40 $slate = $this->ui_factory->mainControls()->slate()->legacy($item->getTitle(), $symbol, $item->getContent());
41
42 $slate = $this->addOnloadCode($slate, $item);
43 $slate = $this->applyDecorator($slate, $item);
44
45 return $slate;
46 }
47}
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