To support creation of the patches in cli with drush or/and drupal console it would be nice to have the logic in separate service rather than having it inside the Form class.
Form should just provide the user interface and the logic would be in the separate service that could be reused for other purposes.
The patch is attached.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | decoupled-logic-service-3102075.patch | 23.89 KB | a.dmitriiev |
Comments
Comment #2
a.dmitriiev commentedComment #3
a.dmitriiev commentedAlso the patch fixes some problems with different configuration collections.
Comment #4
a.dmitriiev commentedComment #5
ahebrank commentedThanks for this -- appreciate the improvement over the MVP and will test it out shortly.
Comment #6
ahebrank commentedI don't want to hold this up -- pushing this untested into the 8.x-2.x branch.
Comment #7
ahebrank commented