3 declare(strict_types=1);
    14     $factory = $DIC->ui()->factory();
    15     $renderer = $DIC->ui()->renderer();
    17     $modal = $factory->modal()->interruptive(
    18         'Interrupting something',
    19         'Am I interrupting you?',
    21     )->withActionButtonLabel(
    23     )->withCancelButtonLabel(
    27     $trigger = $factory->button()->standard(
'I will interrupt you', $modal->getShowSignal());
    29     return $renderer->render([$modal, $trigger]);
 with_custom_labels()
An example showing how you can set a custom label for the modals action- and cancel-button.