N°7063 - Forms SDK - Add Symfony forms component

error forms issue
This commit is contained in:
Benjamin Dalsass
2024-01-10 09:32:05 +01:00
parent 54d98ba4f7
commit c7281a5cfc
9 changed files with 140 additions and 14 deletions

View File

@@ -287,4 +287,20 @@ trait FormFactoryBuilderTrait
return $this;
}
/**
* Add file field.
*
* @param string $sKey
* @param array $aOptions
*
* @return \Combodo\iTop\FormSDK\Service\FormFactory
* @throws \Exception
*/
public function AddFileField(string $sKey, array $aOptions) : FormFactory
{
$this->aFieldsDescriptions[$sKey] = new FormFieldDescription($sKey, FormFieldTypeEnumeration::FILE, $aOptions);
return $this;
}
}