ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
with_title_action.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
14 {
15  //Init Factory and Renderer
16  global $DIC;
17  $f = $DIC->ui()->factory();
18  $renderer = $DIC->ui()->renderer();
19 
20  $image = $f->image()->responsive(
21  "./assets/images/logo/HeaderIcon.svg",
22  "Thumbnail Example"
23  );
24 
25  $url = "http://www.ilias.de";
26 
27  $card = $f->card()->standard("Title", $image)->withTitleAction($url);
28 
29  //Render
30  return $renderer->render($card);
31 }
$renderer
with_title_action()
expected output: > ILIAS shows a base ILIAS-Logo.
$url
Definition: shib_logout.php:63
global $DIC
Definition: shib_login.php:25