Render a form <select> element from the provided $element
Parameters: | ElementInterface – |
---|---|
Throws ExceptionInvalidArgumentException: | |
Throws ExceptionDomainException: | |
Return type: | string |
Render an array of options
Individual options should be of the form:
<code> array(
‘value’ => ‘value’, ‘label’ => ‘label’, ‘disabled’ => $booleanFlag, ‘selected’ => $booleanFlag,
) </code>
Parameters: |
|
---|---|
Return type: | string |
Ensure that the value is set appropriately
If the element’s value attribute is an array, but there is no multiple attribute, or that attribute does not evaluate to true, then we have a domain issue – you cannot have multiple options selected unless the multiple attribute is present and enabled.
Parameters: |
|
---|---|
Return type: | array |
Throws : | ExceptionDomainException |