ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
PromptStateEntityListingContextRenderer.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24use ILIAS\UI\Renderer as RendererInterface;
26
32{
33 protected function renderEntity(Entity $component, RendererInterface $default_renderer): string
34 {
35 $tpl = $this->getTemplate('tpl.entity.html', true, true);
36
37 $this->renderPrimaryIdentifier($component, $default_renderer, $tpl);
38 $this->renderSecondaryIdentifier($component, $default_renderer, $tpl);
39 $this->renderMainDetails($component, $default_renderer, $tpl);
40
41 return $tpl->get();
42 }
43}
Context renderer for Prompt State which renders Entity inside Entity Listing for compact spaces.
renderSecondaryIdentifier(Entity $component, RendererInterface $default_renderer, Template $tpl)
Definition: Renderer.php:85
renderPrimaryIdentifier(Entity $component, RendererInterface $default_renderer, Template $tpl)
Definition: Renderer.php:72
renderMainDetails(Entity $component, RendererInterface $default_renderer, Template $tpl)
Definition: Renderer.php:123
getTemplate(string $name, bool $purge_unfilled_vars, bool $purge_unused_blocks)
Get template of component this renderer is made for.
get(string $part=self::DEFAULT_BLOCK)
Renders the given block and returns the html string.
Interface to templating as it is used in the UI framework.
Definition: Template.php:29
An entity that renders components to a string output.
Definition: Renderer.php:31
readonly ilGlobalTemplateInterface $tpl