ILIAS  release_7 Revision v7.30-3-g800a261c036
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 $glyph = $f->symbol()->glyph()->attachment();
14 $button = $f->button()->bulky($glyph, 'Unavailable', '#')->withUnavailableAction();
15
16 return $renderer->render([$button]);
17}
unavailable_action()
This example provides the given button with an unavailable action.
An exception for terminatinating execution or to throw for unit testing.
global $DIC
Definition: goto.php:24