ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
with_string_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_string_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 =
$f
->image()->standard(
41
"assets/ui-examples/images/Image/HeaderIconLarge.svg"
,
42
"Thumbnail Example"
43
)->withAction(
"https://www.ilias.de"
);
44
45
$html =
$renderer
->render($image);
46
47
return
$html;
48
}
$renderer
$renderer
Definition:
build_bootstrap.php:83
ILIAS\UI\examples\Image\Standard
Definition:
base.php:21
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
$DIC
global $DIC
Definition:
shib_login.php:26
ILIAS\UI\examples\Image\Standard\with_string_action
with_string_action()
description: > Example for rendering an Image with a string as action
Definition:
with_string_action.php:32
components
ILIAS
UI
src
examples
Image
Standard
with_string_action.php
Generated on Sun Aug 31 2025 23:04:10 for ILIAS by
1.8.13 (using
Doxyfile
)