ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
base.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
16 function base()
17 {
18  global $DIC;
19  $factory = $DIC->ui()->factory();
20  $renderer = $DIC->ui()->renderer();
21  $message = 'Are you sure you want to delete the following items?';
22  $form_action = $DIC->ctrl()->getFormActionByClass('ilsystemstyledocumentationgui');
23  $modal = $factory->modal()->interruptive('My Title', $message, $form_action);
24 
25  // Note: This modal is just rendered in the DOM but not displayed
26  // because its show/close signals are not triggered by any components
27  return $renderer->render($modal);
28 }
$renderer
base()
description: > Example for rendering an interruptive modal.
Definition: base.php:16
global $DIC
Definition: shib_login.php:25