ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
with_tooltip.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
34 function with_tooltip()
35 {
36  global $DIC;
37  $f = $DIC->ui()->factory();
38  $renderer = $DIC->ui()->renderer();
39 
40  $target = new \ILIAS\Data\URI("https://ilias.de");
41  $glyph = $f->symbol()->glyph()->comment();
42 
43  $link = $f->link()->bulky($glyph, 'Link to ilias.de with Glyph', $target)
44  ->withHelpTopics(
45  ...$f->helpTopics("ilias", "learning management system")
46  );
47 
48  return $renderer->render([
49  $link
50  ]);
51 }
$renderer
global $DIC
Definition: shib_login.php:26