Zend\Form\View\Helper\FormLabel::__invoke
Generate a form label, optionally with content
Always generates a "for" statement, as we cannot assume the form input will be provided in the $labelContent.
Signature
public function __invoke([ElementInterface
$element = null,
[null|string
$labelContent = null,
[string
$position = null]]] )
Parameters
$element
— Zend\Form\ElementInterface
$labelContent
— object
$position
— string
Returns
- string|FormLabel