Avoid using \Drupal calls in classes and try using dependency injection instead in ContentCloseForm.php file
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | patch-applied.png | 25.12 KB | urvashi_vora |
| #5 | after-patch.png | 43.55 KB | urvashi_vora |
| #5 | before-patch.png | 59.82 KB | urvashi_vora |
| #2 | dependency_injection-3124427-2.patch | 2.19 KB | ankithashetty |
Issue fork content_close-3124427
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:
Comments
Comment #2
ankithashettyUsed dependency injection in ContentCloseForm.php file by applying the following patch. Please review the same.
Thank You.
Comment #4
urvashi_vora commentedHi,
I will review this patch.
Comment #5
urvashi_vora commentedHi,
I reviewed your patch, it applied cleanly. And I can confirm that it resolved the dependency injection issue.
Attaching screenshots.
Moving this issue to RTBC.
Thanks
Comment #6
urvashi_vora commentedComment #7
urvashi_vora commentedComment #9
mahtab_alam commentedComment #10
urvashi_vora commentedThanks for the fix.