Problem/Motivation
The webform module declares all custom elements using the 'webform_*' namespace but allows elements to be referenced via the YAML source without the 'webform_' prefix. The goal was to make it easier to enter an element's #type. For example, the 'Select other' element can be defined using just '#type': select_other instead of '#type': webform_select_other. The problem is that this 'magic' prefix handling logic is starting to cause conflicts with other modules that declare form and render elements like the address.module and link.module.
Proposed resolution
Store all elements with their full prefix, but in the YAML source editor display the shorthand type for elements that have no conflicts with other contrib modules.
Remaining tasks
- Remove magic typing
- Write update hook
- Export config
- Write test
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#7 | rework_type_shorthand-2848042-7.patch | 407.83 KB | jrockowitz |
| |||
#3 | rework_type_shorthand-2848042-2.patch | 406.42 KB | jrockowitz |
Comments
Comment #3
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #7
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #9
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commented