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