ILIAS  release_8 Revision v8.24
long_text.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
6
8
9function long_text()
10{
11 //
12 // This example show how the UI-Elements itself looks like. For a full
13 // example use the example of the UI-Component Layout\Page\Standard.
14 //
15
16 global $DIC;
17 $f = $DIC->ui()->factory();
18 $renderer = $DIC->ui()->renderer();
19
20 $long_text = $f->mainControls()->systemInfo(
21 'This Message has a long body',
22 <<<TEXT
23Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
24tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
25vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
26no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
27consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et
28dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo
29dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem
30ipsum dolor sit amet.
31TEXT
32 );
33
34 return $renderer->render([$long_text]);
35}
global $DIC
Definition: feed.php:28