11 $ui =
$DIC->ui()->factory();
12 $renderer =
$DIC->ui()->renderer();
13 $request =
$DIC->http()->request();
25 $select = $ui->input()->field()->select(
"Cannot choose an Option", $options,
"This is the byline text")
29 $form = $ui->input()->container()->form()->standard(
'#', [$select]);
32 if ($request->getMethod() ==
"POST") {
33 $form = $form->withRequest($request);
41 "<pre>" . print_r(
$result,
true) .
"</pre><br/>" .
42 $renderer->render($form);
disabled()
Example showing how to plug a disabled checkbox into a form.
An exception for terminatinating execution or to throw for unit testing.