ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
◀ ilDoc Overview
legacy.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
5
namespace
ILIAS\UI\examples\MainControls\Slate\Legacy
;
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
$renderer
Definition:
build_bootstrap.php:83
ILIAS\UI\examples\MainControls\Slate\Legacy
Definition:
legacy.php:5
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
$DIC
global $DIC
Definition:
shib_login.php:25
ILIAS\UI\examples\MainControls\Slate\Legacy\legacy
legacy()
expected output: > ILIAS shows the rendered Component.
Definition:
legacy.php:13
components
ILIAS
UI
src
examples
MainControls
Slate
Legacy
legacy.php
Generated on Wed Sep 10 2025 15:16:45 for ILIAS by
1.8.13 (using
Doxyfile
)