N°7063 - Forms SDK - Add Symfony forms component

error forms issue
This commit is contained in:
Benjamin Dalsass
2024-01-09 12:42:48 +01:00
parent 153027434d
commit 5213e205af
12 changed files with 192 additions and 40 deletions

View File

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