In order to make the Gutenberg module ready for Drupal 9, we need to remove the deprecated function.
Call to deprecated function file_prepare_directory(). Deprecated in Drupal 8.7.0, will be removed before Drupal 9.0.0.
Use \Drupal\Core\File\FileSystemInterface::prepareDirectory().
in file modules/contrib/gutenberg/src/Controller/MediaController.php
line 135
As suggested in the message, we need to replace this function to a proper object that handles the directories.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | 3074249-8.patch | 381 bytes | sahana _n |
| #3 | 3074249-3.patch | 1.81 KB | aleevas |
Comments
Comment #2
sayco commentedComment #3
aleevasHere is my first patch for this issue.
Hope it's will fit good
Comment #5
marcofernandes commentedAll good, Alexey. Thanks.
Comment #6
rpsuUmm. This change breaks sites using (still supported) Drupal 8.6.x, and should probably be committed only after Drupal 8.8. is releases.
Optionally .info.yml file should explicitly state requirement to Drupal core >= 8.7
Comment #7
rpsuComment #8
sahana _n commentedupdated the info.yml file please review the patch.
Comment #9
sahana _n commentedComment #11
marcofernandes commentedDrupal 8.8 is here. So I guess we can close this one 🙃