19 declare(strict_types=1);
37 $factory = $DIC->ui()->factory();
40 $modal = $factory->modal()->interruptive(
41 'Interrupting something',
42 'Am I interrupting you?',
44 )->withActionButtonLabel(
46 )->withCancelButtonLabel(
50 $trigger = $factory->button()->standard(
'I will interrupt you', $modal->getShowSignal());
52 return $renderer->render([$modal, $trigger]);
with_custom_labels()
description: > An example showing how you can set a custom label for the modals action- and cancel-b...