ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
with_tooltip.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
18 function with_tooltip()
19 {
20  global $DIC;
21  $f = $DIC->ui()->factory();
22  $renderer = $DIC->ui()->renderer();
23 
24  $target = new \ILIAS\Data\URI("https://ilias.de");
25  $glyph = $f->symbol()->glyph()->comment();
26 
27  $link = $f->link()->bulky($glyph, 'Link to ilias.de with Glyph', $target)
28  ->withHelpTopics(
29  ...$f->helpTopics("ilias", "learning management system")
30  );
31 
32  return $renderer->render([
33  $link
34  ]);
35 }
$renderer
global $DIC
Definition: shib_login.php:25