10 $ui = $DIC->ui()->factory();
11 $renderer = $DIC->ui()->renderer();
14 $text_input = $ui->input()->field()->text(
"Disabled Input",
"Just some disabled input")->withDisabled(
true);
17 $form = $ui->input()->container()->form()->standard(
"#", [$text_input]);
20 return $renderer->render($form);
disabled()
Example showing how to plug a disabled checkbox into a form.