ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
unavailable_action.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
13 {
14  global $DIC;
15  $f = $DIC->ui()->factory();
16  $renderer = $DIC->ui()->renderer();
17 
18  $glyph = $f->symbol()->glyph()->attachment();
19  $button = $f->button()->bulky($glyph, 'Unavailable', '#')->withUnavailableAction();
20 
21  return $renderer->render([$button]);
22 }
global $DIC
Definition: feed.php:28
unavailable_action()
This example provides the given button with an unavailable action.