Upgrade Status report
Contributed projects
CKEditor CodeSnippet 8.x-1.6
Scanned on January 22, 2020.
1 error found. 1 warning found. Items categorized "Fix now" are uses of deprecated APIs from community unsupported core versions.
Status File name Line Error
Fix now modules/contrib/codesnippet/codesnippet.module 40 Call to deprecated method entityManager() of class Drupal. Deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal::entityTypeManager() instead in most cases. If the needed method is not on \Drupal\Core\Entity\EntityTypeManagerInterface, see the deprecated \Drupal\Core\Entity\EntityManager to find the correct interface or service.
Check manually modules/contrib/codesnippet/codesnippet.info.yml 0 Add core_version_requirement: ^8 || ^9 to codesnippet.info.yml to designate that the module is compatible with Drupal 9. See https://www.drupal.org/node/3070687.
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | 3108118-11.patch | 982 bytes | ankush_03 |
| #8 | 3108118-8.patch | 982 bytes | sutharsan |
| #8 | interdiff-3108118-5-8.txt | 532 bytes | sutharsan |
| #5 | 3108118-5.patch | 1001 bytes | voleger |
| #4 | 3108118-4.patch | 975 bytes | ankush_03 |
Comments
Comment #1
Anonymous (not verified) commentedBwolf created an issue. See original summary.
Comment #2
julianvj commentedComment #3
julianvj commentedAttached patch to fix Drupal 9 compatibility errors
Comment #4
ankush_03Added back the core: 8.x key because apparently it has to be there if the module can work with versions prior to 8.7.7
Comment #5
volegerProjects with unsupported versions of Drupal core can patch modules to add missed 'core' key, but with core key is optional for supported and restricted for Drupal 9+ versions. Also without 'core_version_requirement' key composer not possible download module via composer.
We have Drupal 9 RC1 on the next week, a lot projects will try to upgrade their modules, so It would be better to apply patch ASAP.
Comment #6
jcnventuraThe only fix here is to use entityTypeManager(). This API has been in Drupal since 8.0.0, and as such this module would still support all versions prior to 8.7.7. As such, please keep the 'core' key.
Comment #7
sutharsan commentedWorking...
Comment #8
sutharsan commentedComment #9
sutharsan commentedUpgrade Status report after applying the patch
Comment #10
jungleThanks everyone for working on this!
Checked with the upgrade_status module on my local:
+1 to the newline added to the end of codesnippet.info.yml
Comment #11
ankush_03Comment #12
jcnventuraIf #8 gets committed, please also credit @chipway as he did some work that is long RTBC over in #3000133: Update Dependencies for composer.
I'll leave to the maintainer whether #11 is a valid contribution or not.
Comment #14
jcnventuraComment #15
klemendev commentedNow that D9 is out, there might be a good point to make a stable release compatible with it :)
Comment #16
ara martirosyan commentedthe patch #11 gets rejected on codesnippet.info.yml
Comment #17
kevinquillen commentedWanted to note I am using this on my personal D9 site and it works!
Comment #18
heddn+1 on release a new tag. The last one was from 2016!
Comment #19
ara martirosyan commented