Zend\Form\Factory::configureFieldset
Configure a fieldset based on the provided specification
Specification can contain any of the following: - type: the Fieldset class to use; defaults to \Zend\Form\Fieldset - name: what name to provide the fieldset, if any - options: an array, Traversable, or ArrayAccess object of element options - attributes: an array, Traversable, or ArrayAccess object of element attributes to assign - elements: an array or Traversable object where each entry is an array or ArrayAccess object containing the keys: - flags: (optional) array of flags to pass to FieldsetInterface::add() - spec: the actual element specification, per
Signature
public function configureFieldset(FieldsetInterface
$fieldset,
array|Traversable|ArrayAccess
$spec )
Parameters
$fieldset
— Zend\Form\FieldsetInterface
$spec
— object
Returns
- FieldsetInterface