ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
with_disabled.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
29 function with_disabled()
30 {
31  global $DIC;
32  $f = $DIC->ui()->factory();
33  $renderer = $DIC->ui()->renderer();
34 
35  $target = new \ILIAS\Data\URI("https://ilias.de");
36  $glyph = $f->symbol()->glyph()->comment();
37 
38  $link = $f->link()->bulky($glyph, 'Link to ilias.de with Glyph', $target)
39  ->withDisabled(true);
40 
41  return $renderer->render([
42  $link
43  ]);
44 }
$renderer
global $DIC
Definition: shib_login.php:22