3 declare(strict_types=1);
40 $ui = $DIC->ui()->factory();
43 $text_input = $ui->input()->field()
44 ->text(
"Required Input",
"User needs to fill this field")
47 $section = $ui->input()->field()->section(
49 "Section with required field",
50 "The Form should show an explaining hint at the bottom" 53 $form = $ui->input()->container()->form()->standard(
"", [$section, $section, $text_input]);
55 $array = $form->reduceWith(
60 $ui->legacy()->content(
'<pre>' . print_r(json_encode($array, JSON_PRETTY_PRINT),
true) .
'</pre>'),