ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
unavailable_action.php
Go to the documentation of this file.
1<?php
8{
9 global $DIC;
10 $f = $DIC->ui()->factory();
11 $renderer = $DIC->ui()->renderer();
12
13 $button = $f->button()->primary('Unavailable', '#')->withUnavailableAction();
14
15 return $renderer->render([$button]);
16}
unavailable_action()
This example provides the given button with an unavailable action.
An exception for terminatinating execution or to throw for unit testing.
$DIC
Definition: xapitoken.php:46