3declare(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);
48 RendererInterface $default_renderer
50 $tpl_name =
"tpl.standard.html";
51 $tpl = $this->setStandardVars($tpl_name, $component);
57 RendererInterface $default_renderer
59 $tpl_name =
"tpl.bulky.html";
60 $tpl = $this->setStandardVars($tpl_name, $component);
61 $renderer = $default_renderer->withAdditionalContext($component);
62 $tpl->setVariable(
"SYMBOL", $renderer->render($component->getSymbol()));
64 $id = $this->bindJavaScript($component);
65 $tpl->setVariable(
"ID", $id);
67 $aria_role = $component->getAriaRole();
68 if ($aria_role !=
null) {
69 $tpl->setCurrentBlock(
"with_aria_role");
70 $tpl->setVariable(
"ARIA_ROLE", $aria_role);
71 $tpl->parseCurrentBlock();
83 Component\Link\Standard::class,
84 Component\Link\Bulky::class
An exception for terminatinating execution or to throw for unit testing.
This implements commonalities between Links.
renderBulky(Component\Link\Bulky $component, RendererInterface $default_renderer)
setStandardVars(string $tpl_name, Component\Link\Link $component)
getComponentInterfaceName()
Get the name of the component-interface this renderer is supposed to render.ATTENTION: Fully qualifie...
render(Component\Component $component, RendererInterface $default_renderer)
renderStandard(Component\Link\Standard $component, RendererInterface $default_renderer)
Base class for all component renderers.
getTemplate($name, $purge_unfilled_vars, $purge_unused_blocks)
Get template of component this renderer is made for.
checkComponent(Component $component)
Check if a given component fits this renderer and throw \LogicError if that is not the case.
return true
Flag indicating whether or not HTTP headers will be sent when outputting captcha image/audio.
A component is the most general form of an entity in the UI.
Interface to templating as it is used in the UI framework.
An entity that renders components to a string output.
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl