33 $label = $component->getLabel();
35 if ($label !==
null) {
36 $tpl->setCurrentBlock(
"label");
37 $tpl->setVariable(
"LABEL", $label);
38 $tpl->parseCurrentBlock();
39 $tpl->touchBlock(
"with_label");
41 $tpl->touchBlock(
"divider");
51 $tpl->touchBlock(
"divider");
61 return array(
Component\Divider\Horizontal::class
An exception for terminatinating execution or to throw for unit testing.
renderDividerVertical(Component\Divider\Vertical $component, RendererInterface $default_renderer)
renderDividerHorizontal(Component\Divider\Horizontal $component, RendererInterface $default_renderer)
getComponentInterfaceName()
Get the name of the component-interface this renderer is supposed to render.ATTENTION: Fully qualifie...
render(Component\Component $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.
A component is the most general form of an entity in the UI.
An entity that renders components to a string output.