24 $tpl->setVariable(
"NAME", $component->getName());
25 $tpl->setVariable(
"ARIA_LABEL", $component->getAriaLabel());
26 $tpl->setVariable(
"SIZE", $component->getSize());
29 $tpl->setVariable(
"CUSTOMIMAGE", $component->getIconPath());
31 if ($component->isOutlined()) {
32 $tpl->setVariable(
"OUTLINED",
" outlined");
36 $ab = $component->getAbbreviation();
38 $tpl->setVariable(
"ABBREVIATION", $ab);
41 $di = $component->isDisabled();
43 $tpl->setVariable(
"DISABLED",
" disabled");
checkComponent(Component $component)
Check if a given component fits this renderer and throw if that is not the case. ...
getComponentInterfaceName()
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.