19 if($component->getImage()){
20 $tpl->setVariable(
"IMAGE",$default_renderer->render($component->getImage(),$default_renderer));
23 $tpl->setVariable(
"TITLE",$component->getTitle());
25 if(is_array($component->getSections())){
26 foreach($component->getSections() as
$section){
27 $tpl->setCurrentBlock(
"section");
28 $tpl->setVariable(
"SECTION",$default_renderer->render(
$section,$default_renderer));
29 $tpl->parseCurrentBlock();
An exception for terminatinating execution or to throw for unit testing.
getComponentInterfaceName()
@inheritdocs
render(Component\Component $component, RendererInterface $default_renderer)
@inheritdocs
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.