ILIAS
release_8 Revision v8.24
◀ ilDoc Overview
with_string_action.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
5
namespace
ILIAS\UI\examples\Image\Standard
;
6
10
function
with_string_action
()
11
{
12
//Loading factories
13
global
$DIC
;
14
$f
=
$DIC
->ui()->factory();
15
$renderer =
$DIC
->ui()->renderer();
16
17
//Generating and rendering the image and modal
18
$image =
$f
->image()->standard(
19
"src/UI/examples/Image/HeaderIconLarge.svg"
,
20
"Thumbnail Example"
21
)->withAction(
"https://www.ilias.de"
);
22
23
$html = $renderer->render($image);
24
25
return
$html;
26
}
$DIC
global $DIC
Definition:
feed.php:28
ILIAS\UI\examples\Image\Standard
Definition:
base.php:5
ILIAS\UI\examples\Image\Standard\with_string_action
with_string_action()
Example for rendering an Image with a string as action.
Definition:
with_string_action.php:10
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
src
UI
examples
Image
Standard
with_string_action.php
Generated on Sun Nov 2 2025 22:02:02 for ILIAS by
1.9.4 (using
Doxyfile
)