Method to set some field XML elements to the form definition. If the replace flag is set then the fields will be set whether they already exists or not. If it isn't set, then the fields will not be replaced if they already exist.
Signature
public function setFields(&
$elements,
[string
$group = null,
[boolean
$replace = true]] )
Parameters
$elements
$group
The optional dot-separated form group path on which to set the fields.
$replace
True to replace existing fields if they already exist.