ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\UI\examples\Legacy\Segment Namespace Reference

Functions

 base ()
 

Function Documentation

◆ base()

ILIAS\UI\examples\Legacy\Segment\base ( )

description: > Example for rendering a legacy segment.

expected output: >

ILIAS shows the word "content".

Definition at line 32 of file base.php.

33{
34 global $DIC;
35 $f = $DIC->ui()->factory();
36 $renderer = $DIC->ui()->renderer();
37
38 $legacy = $f->legacy()->segment('title', 'content');
39 return $renderer->render($legacy);
40}
$renderer
global $DIC
Definition: shib_login.php:26

References $DIC, Vendor\Package\$f, and $renderer.