ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
unavailable_action.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
19 {
20  global $DIC;
21  $f = $DIC->ui()->factory();
22  $renderer = $DIC->ui()->renderer();
23 
24  $button = $f->button()->standard('Unavailable', '#')->withUnavailableAction();
25 
26  return $renderer->render([$button]);
27 }
$renderer
global $DIC
Definition: shib_login.php:25
unavailable_action()
description: > This example provides the given button with an unavailable action.