ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
unavailable_action.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
36 {
37  global $DIC;
38  $f = $DIC->ui()->factory();
39  $renderer = $DIC->ui()->renderer();
40 
41  $button = $f->button()->primary('Unavailable', '#')->withUnavailableAction();
42 
43  return $renderer->render([$button]);
44 }
$renderer
global $DIC
Definition: shib_login.php:26
unavailable_action()
description: > This example provides the given button with an unavailable action.