ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ 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
29
function
legacy
()
30
{
31
global
$DIC
;
32
$f
= $DIC->ui()->factory();
33
$renderer
= $DIC->ui()->renderer();
34
35
$icon =
$f
->symbol()->glyph()->comment();
36
$contents =
$f
->legacy()->content(
"some <i>html</i>."
);
37
38
$slate =
$f
->maincontrols()->slate()->legacy(
'legacy_example'
, $icon, $contents);
39
40
$triggerer =
$f
->button()->bulky(
41
$slate->getSymbol(),
42
$slate->getName(),
43
'#'
44
)
45
->withOnClick($slate->getToggleSignal());
46
47
return
$renderer
->render([
48
$triggerer,
49
$slate
50
]);
51
}
$renderer
$renderer
Definition:
build_bootstrap.php:83
ILIAS\UI\examples\MainControls\Slate\Legacy
Definition:
legacy.php:21
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
$DIC
global $DIC
Definition:
shib_login.php:26
ILIAS\UI\examples\MainControls\Slate\Legacy\legacy
legacy()
expected output: > ILIAS shows the rendered Component.
Definition:
legacy.php:29
components
ILIAS
UI
src
examples
MainControls
Slate
Legacy
legacy.php
Generated on Sun Aug 31 2025 23:04:10 for ILIAS by
1.8.13 (using
Doxyfile
)