ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
legacy.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
13 function legacy()
14 {
15  global $DIC;
16  $f = $DIC->ui()->factory();
17  $renderer = $DIC->ui()->renderer();
18 
19  $icon = $f->symbol()->glyph()->comment();
20  $contents = $f->legacy("some <i>html</i>.");
21 
22  $slate = $f->maincontrols()->slate()->legacy('legacy_example', $icon, $contents);
23 
24  $triggerer = $f->button()->bulky(
25  $slate->getSymbol(),
26  $slate->getName(),
27  '#'
28  )
29  ->withOnClick($slate->getToggleSignal());
30 
31  return $renderer->render([
32  $triggerer,
33  $slate
34  ]);
35 }
$renderer
global $DIC
Definition: shib_login.php:25
legacy()
expected output: > ILIAS shows the rendered Component.
Definition: legacy.php:13