3 declare(strict_types=1);
27 return $this->
renderBulky($component, $default_renderer);
36 $action = $component->getAction();
37 $label = $component->getLabel();
38 if ($component->getOpenInNewViewport()) {
39 $tpl->touchBlock(
"open_in_new_viewport");
41 $tpl->setVariable(
"LABEL", $label);
42 $tpl->setVariable(
"HREF", $action);
50 $tpl_name =
"tpl.standard.html";
59 $tpl_name =
"tpl.bulky.html";
61 $renderer = $default_renderer->withAdditionalContext($component);
62 $tpl->setVariable(
"SYMBOL", $renderer->render($component->getSymbol()));
65 $tpl->setVariable(
"ID", $id);
75 Component\Link\Standard::class,
76 Component\Link\Bulky::class
setStandardVars(string $tpl_name, Component\Link\Link $component)
renderStandard(Component\Link\Standard $component, RendererInterface $default_renderer)
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
checkComponent(Component $component)
Check if a given component fits this renderer and throw if that is not the case. ...
render(Component\Component $component, RendererInterface $default_renderer)
This implements commonalities between Links.
getComponentInterfaceName()
renderBulky(Component\Link\Bulky $component, RendererInterface $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.
bindJavaScript(JavaScriptBindable $component)
Bind the component to JavaScript.