6    $r = 
$DIC->ui()->renderer();
 
   10    $page = 
$_GET[
"page"];
 
   12        $modal = 
$f->modal()->roundtrip(
"Modal Title", 
$f->legacy(
"b"));
 
   13        $asyncUrl = 
$url . 
'&page=login&replaceSignal=' . $modal->getReplaceSignal()->getId();
 
   14        $modal = $modal->withAsyncRenderUrl($asyncUrl);
 
   15        $button = 
$f->button()->standard(
"Sign In", 
'#')
 
   16            ->withOnClick($modal->getShowSignal());
 
   17        $content = $r->render([$modal, $button]);
 
   20        $signalId = 
$_GET[
'replaceSignal'];
 
   21        $replaceSignal = new \ILIAS\UI\Implementation\Component\ReplaceSignal($signalId);
 
   22        $button1 = 
$f->button()->standard(
'Login', 
'#')
 
   23            ->withOnClick($replaceSignal->withAsyncRenderUrl(
$url . 
'&page=login&replaceSignal=' . $replaceSignal->getId()));
 
   24        $button2 = 
$f->button()->standard(
'Registration', 
'#')
 
   25            ->withOnClick($replaceSignal->withAsyncRenderUrl(
$url . 
'&page=register&replaceSignal=' . $replaceSignal->getId()));
 
   28        if ($page == 
"login") {
 
   29            $legacy = 
$f->legacy(
"<p>The Login Page</p>");
 
   30            $modal = 
$f->modal()->roundtrip(
"Login", [$button1, $button2, $legacy]);
 
   32        if ($page == 
"register") {
 
   33            $legacy = 
$f->legacy(
"<p>The Registration Page</p>");
 
   34            $modal = 
$f->modal()->roundtrip(
"Registration", [$button1, $button2, $legacy]);
 
   37        echo $r->renderAsync([$modal]);
 
An exception for terminatinating execution or to throw for unit testing.