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.
Problem/Motivation
Drupal 9.3.x has deprecated drupal_get_path().
Steps to reproduce
Use webform on Drupal 9.3.x
Proposed resolution
Fix code in ways that are still compatible with prior versions of Drupal.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork webform-3250330
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 #3
alexpottLet's make this only about drupal_get_path - the date callback stuff is handled in #3221398: [Drupal 9.x] Update use of date_time_callbacks and date_date_callbacks in Webform
Comment #4
alexpottComment #5
alexpottComment #6
alexpottComment #7
alexpottI've reviewed the patch. There are many places where there's no need to use a service to determine the path of a module because webform stuff is being referenced. We can use __DIR__ - and this has the nice advantage of being quicker and integrating much better with IDEs so you can click on the file and go to it.
Comment #8
jrockowitz CreditAttribution: jrockowitz as a volunteer and at Webform module Open Collective, The Big Blue House commentedComment #9
alexpott@jrockowitz this change is completely compatible with Drupal 8.9 fwiw.
Comment #10
alexpottNow that 6.x passes tests on 9.3.x I think this one is ready.
Comment #11
jrockowitz CreditAttribution: jrockowitz as a volunteer and at Webform module Open Collective, The Big Blue House commented