ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
with_custom_labels.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
35{
36 global $DIC;
37 $factory = $DIC->ui()->factory();
38 $renderer = $DIC->ui()->renderer();
39
40 $modal = $factory->modal()->interruptive(
41 'Interrupting something',
42 'Am I interrupting you?',
43 '#'
44 )->withActionButtonLabel(
45 'Yeah you do!'
46 )->withCancelButtonLabel(
47 'Nah, not really'
48 );
49
50 $trigger = $factory->button()->standard('I will interrupt you', $modal->getShowSignal());
51
52 return $renderer->render([$modal, $trigger]);
53}
$renderer
global $DIC
Definition: shib_login.php:26