SDK Form demonstrator

This commit is contained in:
Eric Espie
2025-04-11 17:13:22 +02:00
parent c0b39a6ecb
commit c4a9e980da
12 changed files with 407 additions and 0 deletions

View File

@@ -697,6 +697,9 @@ abstract class Controller extends AbstractController
public function GetForm(string $type = FormType::class, mixed $data = null, array $options = []): FormInterface
{
if (is_null($data)) {
$data = $type::GetDefaultData();
}
return $this->GetFormBuilder($type, $data,$options)->getForm();
}