11 $ui =
$DIC->ui()->factory();
12 $renderer =
$DIC->ui()->renderer();
13 $request =
$DIC->http()->request();
25 $select = $ui->input()->field()->select(
"Choose an Option", $options,
"This is the byline text");
28 $form = $ui->input()->container()->form()->standard(
'#', [$select]);
31 if ($request->getMethod() ==
"POST") {
32 $form = $form->withRequest($request);
40 "<pre>" . print_r(
$result,
true) .
"</pre><br/>" .
41 $renderer->render($form);
An exception for terminatinating execution or to throw for unit testing.