ILIAS  trunk Revision v12.0_alpha-1227-g7ff6d300864
legacy.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
32function legacy()
33{
34 global $DIC;
35 $f = $DIC->ui()->factory();
36 $renderer = $DIC->ui()->renderer();
37
38 $icon = $f->symbol()->glyph()->comment();
39 $contents = $f->legacy()->content("some <i>html</i>.");
40
41 $slate = $f->maincontrols()->slate()->legacy('legacy_example', $icon, $contents);
42
43 $triggerer = $f->button()->bulky(
44 $slate->getSymbol(),
45 $slate->getName(),
46 '#'
47 )
48 ->withOnClick($slate->getToggleSignal());
49
50 return $renderer->render([
51 $triggerer,
52 $slate
53 ]);
54}
$renderer
global $DIC
Definition: shib_login.php:26