Go to the source code of this file.
◆ base()
Definition at line 2 of file base.php.
References $DIC, and $factory.
6 $renderer = $DIC->ui()->renderer();
8 $message1 =
'Toggle Button has been turned on';
9 $message2 =
'Toggle Button has been turned off';
10 $form_action = $DIC->ctrl()->getFormActionByClass(
'ilsystemstyledocumentationgui');
12 $modal =
$factory->modal()->interruptive(
'ON', $message1, $form_action);
13 $modal2 =
$factory->modal()->interruptive(
'OFF', $message2, $form_action);
15 $button =
$factory->button()->toggle(
"", $modal->getShowSignal(), $modal2->getShowSignal());
17 return $renderer->render([$button, $modal, $modal2]);