Problem/Motivation
There is some duplicated code in Drupal\system\Form\ModulesListForm and Drupal\system\Form\ModulesListConfirmForm. It will be easier to maintain if we consolidate some of that code.
Proposed resolution
In #3216341: Provide a module-specific permissions form, we added Drupal\system\Form\ModulesEnabledTrait in order to avoid adding more duplicated code. Let's move some of the existing code to the new trait.
Remaining tasks
User interface changes
None
API changes
None
Data model changes
None
Release notes snippet
None
Issue fork drupal-3236446
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3236446-avoid-duplicated-code
changes, plain diff MR !1240
Comments
Comment #2
benjifisherComment #5
paulocsComment #6
gabriel.abdalla commentedHi, I reviewed the code and changes look fine to me.
Comment #8
catchCommitted 324ddcd and pushed to 9.3.x. Thanks!
Comment #9
benjifisherWhen I created the issue, I thought there would be more duplicated code, but I think the MR catches it all.