ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
inside_panel.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
17 function inside_panel()
18 {
19  //Init Factory and Renderer
20  global $DIC;
21  $f = $DIC->ui()->factory();
22  $renderer = $DIC->ui()->renderer();
23 
24  //Init Component
25  $legacy = $f->legacy("Legacy Content");
26  $panel = $f->panel()->standard("Panel Title", $legacy);
27 
28  //Render
29  return $renderer->render($panel);
30 }
$renderer
inside_panel()
description: > Example for rendering a legacy box.
global $DIC
Definition: shib_login.php:25