ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ComplexItemRenderer.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25
31{
33 MakeSlateAsync::hash insteadof SlateSessionStateCode;
34 MakeSlateAsync::unhash insteadof SlateSessionStateCode;
35 }
36
40 #[\Override]
41 public function getComponentWithContent(isItem $item): Component
42 {
46 global $DIC;
47 $content = $this->ui_factory->legacy()->content($DIC->ui()->renderer()->render($item->getContent()));
48
49 return $this->ui_factory->mainControls()->slate()->legacy($item->getTitle(), $this->getStandardSymbol($item), $content);
50 }
51}
getComponentWithContent(isItem $item)
This is called in cases when the Full Item with it's content is needed, e.g.
A component is the most general form of an entity in the UI.
Definition: Component.php:28
global $DIC
Definition: shib_login.php:26