3 declare(strict_types=1);
    43         if ($component instanceof 
Menu\
Menu) {
    57         $tpl_menu = $this->
getTemplate(
'tpl.menu.html', 
true, 
true);
    59         $label = $component->getLabel();
    60         if (!is_string($label)) {
    61             $label = $default_renderer->render($label);
    63         $tpl_menu->setVariable(
'LABEL', $label);
    64         $tpl_menu->setVariable(
'ITEMS', $this->
renderMenuItems($component, $default_renderer));
    65         return $tpl_menu->get();
    74         $back_signal = $component->getBacklinkSignal();
    75         $persistence_id = $component->getPersistenceId();
    76         $glyph = $ui_factory->symbol()->glyph()->collapsehorizontal();
    77         $btn = $ui_factory->button()->bulky($glyph, 
'', 
'#')
    78                                     ->withOnClick($back_signal)
    79                                     ->withAriaLabel($this->
txt(
'back'));
    80         $back_button_html = $default_renderer->render($btn);
    82         $component = $component->withAdditionalOnLoadCode(
    83             function (
$id) use ($back_signal, $persistence_id) {
    84                 $params = 
"'$id', '$back_signal'";
    85                 if (is_null($persistence_id)) {
    88                     $params .= 
", '$persistence_id'";
    90                 return "il.UI.menu.drilldown.init($params);";
    96         $tpl_name = 
"tpl.drilldown.html";
    98         $tpl->setVariable(
"ID", $id_drilldown);
    99         $tpl->setVariable(
'LABEL', sprintf($this->
txt(
'filter_nodes_in'), $component->getLabel()));
   100         $tpl->setVariable(
'ARIA_LABEL', $component->getLabel());
   101         $tpl->setVariable(
'ID_FILTER', $id_filter);
   102         $tpl->setVariable(
'BACKNAV', $back_button_html);
   103         $tpl->setVariable(
'DRILLDOWN', $items_html);
   104         $tpl->setVariable(
'NO_ITEMS_TEXT', $this->
txt(self::NO_ITEMS_LABEL));
   114         foreach ($component->getItems() as $item) {
   115             $tpl_item = $this->
getTemplate(
'tpl.menuitem.html', 
true, 
true);
   116             if ($item instanceof 
Menu\
Sub) {
   117                 $tpl_item->setVariable(
'CLASS', self::PARENT_CLASS);
   119                 $tpl_item->setVariable(
'CLASS', self::LEAF_CLASS);
   121             $tpl_item->setVariable(
'ITEM', $default_renderer->render($item));
   122             $html .= $tpl_item->get();
   132         parent::registerResources($registry);
   133         $registry->
register(
'assets/js/drilldown.js');
 
Registry for resources required by rendered output like Javascript or CSS. 
 
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
 
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. 
 
createId()
Get a fresh unique id. 
 
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. 
 
register(string $name)
Add a dependency. 
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins 
 
getUIFactory()
Get a UI factory. 
 
Base class for all component renderers. 
 
bindJavaScript(JavaScriptBindable $component)
Bind the component to JavaScript.