ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
with_signal_action.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\examples\Image\Standard
;
22
32
function
with_signal_action
()
33
{
34
//Loading factories
35
global
$DIC
;
36
$f
=
$DIC
->ui()->factory();
37
$renderer
=
$DIC
->ui()->renderer();
38
39
//Generating and rendering the image and modal
40
$image_in_modal =
$f
->image()->standard(
41
"assets/ui-examples/images/Image/mountains.jpg"
,
42
""
43
);
44
$page =
$f
->modal()->lightboxImagePage($image_in_modal,
"Nice view"
);
45
$modal =
$f
->modal()->lightbox($page);
46
47
$image =
$f
->image()->standard(
48
"assets/ui-examples/images/Image/HeaderIconLarge.svg"
,
49
"Thumbnail Example"
50
)->withAction($modal->getShowSignal());
51
52
$html =
$renderer
->render([$image, $modal]);
53
54
return
$html;
55
}
$renderer
$renderer
Definition:
build_bootstrap.php:83
ILIAS\UI\examples\Image\Standard
Definition:
base.php:21
ILIAS\UI\examples\Image\Standard\with_signal_action
with_signal_action()
Definition:
with_signal_action.php:32
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
$DIC
global $DIC
Definition:
shib_login.php:26
components
ILIAS
UI
src
examples
Image
Standard
with_signal_action.php
Generated on Sat Oct 18 2025 23:04:40 for ILIAS by
1.9.4 (using
Doxyfile
)