Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem
Webform module currently requires a dozen external libraries which provide important UI enhancements. Front-end developers should be able to disable any external library dependency and utilize a contrib or custom enhancement.
Solution
Better document external dependencies and allow webform admins to exclude libraries.
Goals
- Make it possible to disable iCheck integration.
- Make it possible to disable Select2 integration.
- Make it possible to enabled Chosen integration with or without the chosen.module
- Generate Webform.libraires.make.yml and composer.json
Tasks
- Make sure external library names are completely insync.
- Add link to examples for all libraries.
- Move webform.libraries.make.yml info into WebformLibraryManager.
- WebformLibraryManager::attached($build, $library, $require); TRUE|FALSE
- WebformLibraryManager::isEnabled($library);
- WebformLibraryManager::isDisabled($library);
- Add 'Excluded Libraries' to admin settings.
- Update drush webform-libraries to only download supported codebases
- Update \Drupal\webform\WebformElementBase::isEnabled to also check libraries
- Add libraries to WebformElement plugin definition
- Display libraries on 'Select available element types' and elements list page.
- Improve drush webform-libraries commands.
Comment | File | Size | Author |
---|---|---|---|
#22 | improve_external-2870218-21.patch | 23.6 KB | jrockowitz |
| |||
#15 | improve_external-2870218-15.patch | 82.85 KB | jrockowitz |
| |||
#12 | improve_external-2870218-12.patch | 91.41 KB | jrockowitz |
#9 | improve_external-2870218-8.patch | 91.7 KB | jrockowitz |
Comments
Comment #9
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #12
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #15
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #17
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #18
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #22
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #24
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commented