ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
base.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
10 function base()
11 {
12  //Loading factories
13  global $DIC;
14  $f = $DIC->ui()->factory();
15  $renderer = $DIC->ui()->renderer();
16 
17  //Genarating and rendering the image
18  $image = $f->image()->responsive(
19  "src/UI/examples/Image/HeaderIconLarge.svg",
20  "Thumbnail Example"
21  );
22  $html = $renderer->render($image);
23 
24  return $html;
25 }
base()
Base Example for rendering an responsive Image.
Definition: base.php:10
global $DIC
Definition: feed.php:28