Problem/Motivation
Remove drupal_get_path() is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\Core\Extension\ExtensionPathResolver::getPathname() instead. See https://www.drupal.org/node/2940438
Steps to reproduce
Proposed resolution
/dropzonejs.install in dropzonejs_requirements() function
Switch to use $profile_path = \Drupal::service('extension.list.profile')->getPath(\Drupal::installProfile())
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | dropzonejs-d10-3277296-8-interdiff.txt | 2.31 KB | berdir |
| #8 | dropzonejs-d10-3277296-8.patch | 17.4 KB | berdir |
| #6 | dropzonejs-d10-3277296-6-interdiff.txt | 1.03 KB | berdir |
| #6 | dropzonejs-d10-3277296-6.patch | 17.57 KB | berdir |
| #5 | dropzonejs-d10-3277296-5.patch | 17.65 KB | berdir |
Comments
Comment #2
ada hernandez commentedComment #3
heddnNo more calls to drupal_get_path exist.
Comment #4
berdirThis should then also update the required core version to 9.3
Comment #5
berdirExpanding the scope here, including patch from #3287067: Automated Drupal 10 compatibility fixes.
Needs JS changes as well, that will definitely need to be reviewed, especially the _.each replacement. But the JS test passes, so that's a start.
Also related #3264729: Use the new core FileUploadSanitizeNameEvent for sanitizing, this includes that event, but only as a minimal replacement of the existing file_munge_filename() call, it keeps the current hardcoded stuff.
Comment #6
berdirRemoved the debugging leftover and trying to explicitly specify the drupal core version in composer.json.
Comment #7
larowlanCould just use Object.values here if you only need the 'item'
Looks good to me otherwise
Lots of legacy jQuery in those files that could probably be cleaned up, but that's out of scope here
Comment #8
berdirThat makes sense ;)
Comment #10
berdirCommitted.