ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
header.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
29 function header()
30 {
31  global $DIC;
32 
33  $factory = $DIC->ui()->factory();
34  $renderer = $DIC->ui()->renderer();
35 
36  $glyph = $factory->symbol()->glyph()->header("#");
37 
38  // showcase the various states of this Glyph
39  $list = $factory->listing()->descriptive([
40  "Active" => $glyph,
41  "Inactive" => $glyph->withUnavailableAction(),
42  "Highlighted" => $glyph->withHighlight()
43  ]);
44 
45  return $renderer->render($list);
46 }
$renderer
global $DIC
Definition: shib_login.php:22
header()
expected output: > ILIAS shows the rendered Component.
Definition: header.php:29