ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
simple.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
7 function simple()
8 {
9  global $DIC;
10  $f = $DIC->ui()->factory();
11  $renderer = $DIC->ui()->renderer();
12 
13  $icon = $f->symbol()->icon()->standard("crs", 'Example');
14 
15  $node = $f->tree()->node()->simple('label');
16  $node2 = $f->tree()->node()->simple('label', $icon);
17 
18  return $renderer->render([$node, $node2]);
19 }
global $DIC
Definition: feed.php:28