ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
with_tooltip.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
33 function with_tooltip()
34 {
35  global $DIC;
36  $f = $DIC->ui()->factory();
37  $renderer = $DIC->ui()->renderer();
38  $primary = $f->button()->primary("Goto ILIAS", "http://www.ilias.de")
39  ->withHelpTopics(
40  ...$f->helpTopics("ilias", "learning management system")
41  );
42  return $renderer->render($primary);
43 }
with_tooltip()
description: > Example for rendering a primary button with tooltips
$renderer
global $DIC
Definition: shib_login.php:22