ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
with_disabled.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
13 function with_disabled()
14 {
15  global $DIC;
16  $f = $DIC->ui()->factory();
17  $renderer = $DIC->ui()->renderer();
18 
19  $target = new \ILIAS\Data\URI("https://ilias.de");
20  $glyph = $f->symbol()->glyph()->comment();
21 
22  $link = $f->link()->bulky($glyph, 'Link to ilias.de with Glyph', $target)
23  ->withDisabled(true);
24 
25  return $renderer->render([
26  $link
27  ]);
28 }
$renderer
global $DIC
Definition: shib_login.php:25