19 declare(strict_types=1);
38 $tpl = $this->
getTemplate(
"tpl.breadcrumbs.html",
true,
true);
40 $tpl->setVariable(
"ARIA_LABEL", $this->
txt(
'breadcrumbs_aria_label'));
41 $add_separator =
false;
42 foreach (array_reverse($component->getItems()) as $key => $crumb) {
44 $tpl->touchBlock(
"separator");
46 $tpl->setCurrentBlock(
"crumbs");
47 $tpl->setVariable(
"CRUMB", $default_renderer->render($crumb));
48 $tpl->parseCurrentBlock();
49 $add_separator =
true;
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
txt(string $id)
Get a text from the language file.
render(Component\Component $component, RendererInterface $default_renderer)
getTemplate(string $name, bool $purge_unfilled_vars, bool $purge_unused_blocks)
Get template of component this renderer is made for.
cannotHandleComponent(Component $component)
This method MUST be called by derived component renderers, if.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Base class for all component renderers.