10 $f =
$DIC->ui()->factory();
11 $renderer =
$DIC->ui()->renderer();
13 $button =
$f->button()->shy(
'Unavailable',
'#')->withUnavailableAction();
15 return $renderer->render([$button]);
unavailable_action()
This example provides the given button with an unavailable action.
An exception for terminatinating execution or to throw for unit testing.