Zend\Form\Annotation\AnnotationBuilder::getFormSpecification
Creates and returns a form specification for use with a factory
Parses the object provided, and processes annotations for the class and all properties. Information from annotations is then used to create specifications for a form, its elements, and its input filter.
Signature
public function getFormSpecification(string|object
$entity )
Parameters
$entity
— object- Either an instance or a valid class name for an entity
Returns
- ArrayObject
Errors/Exceptions
-
InvalidArgumentException
- if $entity is not an object or class name