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.
This could be quite a big patch and need a few re-rolls so the sooner we can get this in the better.
Meta Issue.
#1916134: Remove module_* deprecated functions
Comment | File | Size | Author |
---|---|---|---|
#4 | 2045919-4-replace-module_implements-calls.patch | 31.44 KB | paravibe |
#2 | 2045919-2-replace-module_implements-calls.patch | 31.49 KB | paravibe |
Comments
Comment #1
benjy CreditAttribution: benjy commentedTagging
Comment #2
paravibe CreditAttribution: paravibe commentedDone.
Please review and commit.
Comment #3
benjy CreditAttribution: benjy commentedThere is no need for \Drupal to be absolute. We only do that in documentation.
Comment #4
paravibe CreditAttribution: paravibe commentedOK, thanks benjy.
Left it only for these two files:
core/lib/Drupal/Core/Config/Entity/ConfigStorageController.php
core/lib/Drupal/Core/Entity/DatabaseStorageController.php
Comment #6
paravibe CreditAttribution: paravibe commentedI continue to work on this.
Comment #7
benjy CreditAttribution: benjy commenteddrupalarv, seems I mislead you a bit on the absolute paths vs relative. They have to be absolute in files with a namespace (which I didn't realise). Which is what caused your test failures.
Here's the relevant link to the docs so you can see for yourself :) https://drupal.org/node/1353118
Comment #8
paravibe CreditAttribution: paravibe commentedThanks benjy!
This patch should be good.
Comment #9
paravibe CreditAttribution: paravibe commentedNew patch.
Replace reference in comments and some other files.
Comment #11
paravibe CreditAttribution: paravibe commented#9: 2045919-9-replace-module_implements-calls.patch queued for re-testing.
Comment #13
paravibe CreditAttribution: paravibe commented#9: 2045919-9-replace-module_implements-calls.patch queued for re-testing.
Comment #16
paravibe CreditAttribution: paravibe commentedA new one. With last core changes.
Comment #18
paravibe CreditAttribution: paravibe commentedJust forget to write absolute \Drupal path in some files, sorry.
Comment #19
benjy CreditAttribution: benjy commentedThis patch no longer applies. If we can get a re-roll we can try get this in ASAP.
Comment #20
paravibe CreditAttribution: paravibe commentedNew one. Will be good if we could apply it ASAP.
Comment #21
benjy CreditAttribution: benjy commentedOK Let's try get this in :)
Comment #22
catchCommitted/pushed to 8.x, thanks!
Comment #24
ianthomas_ukThe watchdog function in bootstrap.inc still calls function_exists('module_implements'). This needs to be removed or updated (possibly to class_exists('\Drupal')?)
Comment #25
ianthomas_ukSee #325169-81: Move error/exception handler higher up in the bootstrap process for why this function_exists is there.
We should be able to just remove it, but it will need manual testing to confirm there isn't another function that watchdog is dependent on (possibly t).
Comment #26
ianthomas_ukComment #27
ianthomas_ukwatchdog() has been rewritten, so #24 no longer applies