mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 10:08:45 +02:00
SDK Form demonstrator
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user