ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
with_tooltip.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
7 //The Bulky Links in this example point to ilias.de
8 //Note the exact look of the Bulky Links is mostly defined by the
9 //surrounding container.
10 function with_tooltip()
11 {
12  global $DIC;
13  $f = $DIC->ui()->factory();
14  $renderer = $DIC->ui()->renderer();
15 
16  $target = new \ILIAS\Data\URI("https://ilias.de");
17  $glyph = $f->symbol()->glyph()->comment();
18 
19  $link = $f->link()->bulky($glyph, 'Link to ilias.de with Glyph', $target)
20  ->withHelpTopics(
21  ...$f->helpTopics("ilias", "learning management system")
22  );
23 
24  return $renderer->render([
25  $link
26  ]);
27 }
global $DIC
Definition: feed.php:28