Zend\Form\Factory::configureElement
Configure an element based on the provided specification
Specification can contain any of the following: - type: the Element class to use; defaults to \Zend\Form\Element - name: what name to provide the element, if any - options: an array, Traversable, or ArrayAccess object of element options - attributes: an array, Traversable, or ArrayAccess object of element attributes to assign
Signature
public function configureElement(ElementInterface
$element,
array|Traversable|ArrayAccess
$spec )
Parameters
$element
— Zend\Form\ElementInterface
$spec
— object
Returns
- ElementInterface