Add 'yesno' html_type in Settings metadata
Overview
YesNo fields (radio buttons with Yes/No) can be specified in settings metadata by using the deprecated quick_form_type
property but not with its replacement html_type
Current behaviour
Can only create Yes/No fields using deprecated quick_form_type
property.
Proposed behaviour
Can create Yes/No fields using html_type
property with value yesno
.
Comments
CRM_Admin_Form_SettingTrait::addFieldsDefineInSettingsMetadata()
handles YesNo fields but CRM_Admin_Form_SettingTrait::getQUickFormType()
can only return YesNo from $spec['quick_form_type']
, not from $spec['html_type']