36 return $this->
renderSub($component, $default_renderer);
41 return $this->
renderReport($component, $default_renderer);
52 foreach ($component->getContent() as $item) {
53 $content .= $default_renderer->render($item);
68 $actions = $component->getActions();
69 if ($actions !== null) {
70 $tpl->setVariable(
"ACTIONS", $default_renderer->render($actions));
73 $tpl->setVariable(
"TITLE", $component->getTitle());
87 $actions = $component->getActions();
89 if ($component->getTitle() !=
"" || $actions !== null) {
90 $tpl->setCurrentBlock(
"title");
93 if ($actions !== null) {
94 $tpl->setVariable(
"ACTIONS", $default_renderer->render($actions));
98 $tpl->setVariable(
"TITLE", $component->getTitle());
99 $tpl->parseCurrentBlock();
102 if ($component->getCard()) {
103 $tpl->setCurrentBlock(
"with_card");
105 $tpl->setVariable(
"CARD", $default_renderer->render($component->getCard()));
106 $tpl->parseCurrentBlock();
108 $tpl->setCurrentBlock(
"no_card");
110 $tpl->parseCurrentBlock();
124 $tpl->setVariable(
"TITLE", $component->getTitle());
134 return [Component\Panel\Panel::class];
checkComponent(Component $component)
Check if a given component fits this renderer and throw if that is not the case. ...
renderSub(Component\Panel\Sub $component, RendererInterface $default_renderer)
renderReport(Component\Panel\Report $component, RendererInterface $default_renderer)
getContentAsString(Component\Component $component, RendererInterface $default_renderer)
render(Component $component, Renderer $default_renderer)
Render the component if possible and delegate additional rendering to the default_renderer.
renderStandard(Component\Panel\Standard $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.
getComponentInterfaceName()