9 $ui =
$DIC->ui()->factory();
10 $renderer =
$DIC->ui()->renderer();
11 $request =
$DIC->http()->request();
14 $radio = $ui->input()->field()->radio(
"Radio",
"check an option")
15 ->withOption(
'value1',
'label1',
'byline1')
16 ->withOption(
'10',
'numeric value (ten)',
'byline2')
17 ->withOption(
'030',
'not-numeric value',
'byline3');
20 $form = $ui->input()->container()->form()->standard(
'#', [
'radio' => $radio]);
23 if ($request->getMethod() ==
"POST") {
24 $form = $form->withRequest($request);
32 "<pre>" . print_r(
$result,
true) .
"</pre><br/>" .
33 $renderer->render($form);
An exception for terminatinating execution or to throw for unit testing.