19declare(strict_types=1);
38 return $this->
renderEntity($component, $default_renderer);
45 $tpl = $this->
getTemplate(
'tpl.entity.html',
true,
true);
48 if (is_string($secondary_identifier)) {
49 $tpl->touchBlock(
'secondid_string');
51 $tpl->touchBlock(
'secondid_image');
53 $tpl->touchBlock(
'secondid_symbol');
55 $tpl->touchBlock(
'secondid_link');
57 $tpl->touchBlock(
'secondid_shy');
60 $tpl->setVariable(
'SECONDARY_IDENTIFIER', is_string($secondary_identifier) ? $secondary_identifier : $this->
maybeRender($default_renderer, $secondary_identifier));
63 $primary_identifier = is_string($primary_identifier) ? $primary_identifier : $this->
maybeRender($default_renderer, $primary_identifier);
64 $tpl->setVariable(
'PRIMARY_IDENTIFIER', $primary_identifier);
74 $actions_dropdown = $this->
getUIFactory()->dropdown()->standard($actions);
75 $tpl->setVariable(
'ACTIONS', $default_renderer->render($actions_dropdown));
78 $tpl->setVariable(
'REACTIONS', $default_renderer->render($reactions));
81 $tpl->setVariable(
'PRIO_REACTIONS', $default_renderer->render($prio_reactions));
94 return $default_renderer->render($values);
getBlockingAvailabilityConditions()
getPrioritizedReactions()
maybeRender(RendererInterface $default_renderer, Component\Component|null ... $values)
renderEntity(Entity $component, RendererInterface $default_renderer)
render(Component\Component $component, RendererInterface $default_renderer)
Base class for all component renderers.
cannotHandleComponent(Component $component)
This method MUST be called by derived component renderers, if.
getUIFactory()
Get a UI factory.
getTemplate(string $name, bool $purge_unfilled_vars, bool $purge_unused_blocks)
Get template of component this renderer is made for.
Registry for resources required by rendered output like Javascript or CSS.
Interface to templating as it is used in the UI framework.
An entity that renders components to a string output.