28 if ($component->getAction()) {
29 $tpl->setCurrentBlock(
"action_begin");
30 $tpl->setVariable(
"HREF", $component->getAction());
31 $tpl->parseCurrentBlock();
34 $tpl->setCurrentBlock($component->getType());
35 $tpl->setVariable(
"SOURCE", $component->getSource());
36 $tpl->setVariable(
"ALT", htmlspecialchars($component->getAlt()));
37 $tpl->parseCurrentBlock();
39 if ($component->getAction()) {
40 $tpl->touchBlock(
"action_end");
51 return [Component\Image\Image::class];
getComponentInterfaceName()
checkComponent(Component $component)
Check if a given component fits this renderer and throw if that is not the case. ...
render(Component $component, Renderer $default_renderer)
Render the component if possible and delegate additional rendering to the default_renderer.
getTemplate($name, $purge_unfilled_vars, $purge_unused_blocks)
Get template of component this renderer is made for.
Base class for all component renderers.