19 declare(strict_types=1);
38 return $this->
renderEntity($component, $default_renderer);
43 $tpl = $this->
getTemplate(
'tpl.entity.html',
true,
true);
46 if (is_string($secondary_identifier)) {
47 $tpl->touchBlock(
'secondid_string');
49 $tpl->touchBlock(
'secondid_image');
51 $tpl->touchBlock(
'secondid_symbol');
52 } elseif ($secondary_identifier instanceof
Component\Image\Link) {
53 $tpl->touchBlock(
'secondid_link');
54 } elseif ($secondary_identifier instanceof
Component\Image\
Shy) {
55 $tpl->touchBlock(
'secondid_shy');
58 $tpl->setVariable(
'SECONDARY_IDENTIFIER', is_string($secondary_identifier) ? $secondary_identifier : $this->
maybeRender($default_renderer, $secondary_identifier));
61 $primary_identifier = is_string($primary_identifier) ? $primary_identifier : $this->
maybeRender($default_renderer, $primary_identifier);
62 $tpl->setVariable(
'PRIMARY_IDENTIFIER', $primary_identifier);
72 $actions_dropdown = $this->
getUIFactory()->dropdown()->standard($actions);
73 $tpl->setVariable(
'ACTIONS', $default_renderer->render($actions_dropdown));
76 $tpl->setVariable(
'REACTIONS', $default_renderer->render($reactions));
79 $tpl->setVariable(
'PRIO_REACTIONS', $default_renderer->render($prio_reactions));
92 return $default_renderer->render($values);
101 Component\Entity\Standard::class
getComponentInterfaceName()
checkComponent(Component $component)
Check if a given component fits this renderer and throw if that is not the case. ...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getBlockingAvailabilityConditions()
renderEntity(Entity $component, RendererInterface $default_renderer)
getTemplate(string $name, bool $purge_unfilled_vars, bool $purge_unused_blocks)
Get template of component this renderer is made for.
maybeRender(RendererInterface $default_renderer, Component\Component|null ... $values)
render(Component\Component $component, RendererInterface $default_renderer)
getUIFactory()
Get a UI factory.
getPrioritizedReactions()
Base class for all component renderers.