ILIAS
trunk Revision v12.0_alpha-1227-g7ff6d300864
◀ ilDoc Overview
legacy.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\examples\MainControls\Slate\Legacy
;
22
32
function
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
$renderer
Definition:
build_bootstrap.php:83
ILIAS\UI\examples\MainControls\Slate\Legacy
Definition:
legacy.php:21
ILIAS\UI\examples\MainControls\Slate\Legacy\legacy
legacy()
Definition:
legacy.php:32
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
$DIC
global $DIC
Definition:
shib_login.php:26
components
ILIAS
UI
src
examples
MainControls
Slate
Legacy
legacy.php
Generated on Wed Apr 8 2026 23:06:39 for ILIAS by
1.9.4 (using
Doxyfile
)