Updated: Comment #N
Problem/Motivation
Drupal\edit\EditController is extends ContainerAware and uses the container to instantiate a form class and uses deprecated procedural form functions
Proposed resolution
The form function can take a class name instead of an instance, thus removing the need to be ContainerAware. By injecting the form_builder service, we removed deprecated procedural calls.
Note: this patch was initially based on chnages by tim.plunkett in his patch at #2110501: ControllerBase should implement ContainerInjectionInterface like FormBase, and should be considered partly his work.
Remaining tasks
Get a clean test run/review of the patch
User interface changes
none
API changes
none
Comment | File | Size | Author |
---|---|---|---|
#5 | 2167169-5.patch | 4.53 KB | Wim Leers |
Comments
Comment #1
pwolanin CreditAttribution: pwolanin commentedComment #2
dawehnerI really like that cleanup and it was already part of the ContainerBase patch!
Comment #4
pwolanin CreditAttribution: pwolanin commentedoops - forgot to assign the variable in the constructor and similar stupidity.
This fixes those problems and tests pass locally.
Comment #5
Wim Leers+1 for RTBC.
Just fixing a typo in this reroll.
Comment #6
Wim LeersComment #7
pwolanin CreditAttribution: pwolanin commentedComment #8
pwolanin CreditAttribution: pwolanin commentedComment #9
webchickCommitted and pushed to 8.x. Thanks!