3 declare(strict_types=1);
15 $ui = $DIC->ui()->factory();
16 $renderer = $DIC->ui()->renderer();
17 $request = $DIC->http()->request();
20 $tag_input = $ui->input()->field()->tag(
22 [
'Interesting & fascinating',
'Boring, dull',
'Animating',
'Repetitious'],
27 $form = $ui->input()->container()->form()->standard(
'#', [
'f2' => $tag_input]);
30 if ($request->getMethod() ===
"POST") {
31 $form = $form->withRequest($request);
32 $result = $form->getData();
34 $result =
"No result yet.";
39 . print_r($result,
true)
41 . $renderer->render($form);