ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
base.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
17 function base()
18 {
19  //Loading factories
20  global $DIC;
21  $f = $DIC->ui()->factory();
22  $renderer = $DIC->ui()->renderer();
23 
24  //Generating and rendering the image
25  $image = $f->image()->standard(
26  "assets/ui-examples/images/Image/HeaderIconLarge.svg",
27  "Thumbnail Example"
28  );
29  $html = $renderer->render($image);
30 
31  return $html;
32 }
$renderer
global $DIC
Definition: shib_login.php:25
base()
description: > Base example for rendering an Image.
Definition: base.php:17