## Drupal 9 readiness
added to commerce_autosku.info.yml:
core_version_requirement: ^8 || ^9
Then modified deprecated classes like Drupal\Component\Plugin\ConfigurablePluginInterface. Because when installed error messages shows class isn't found.
## What I basicaly did:
1 . modified deprecated classes
replaced Drupal\Component\Plugin\ConfigurablePluginInterface
to Drupal\Component\Plugin\ConfigurableInterface
and
replaced ConfigurablePluginInterface
to ConfigurableInterface
2. removed argument
in commerce_autosku.services.yml on R9 removed argument arguments '@entity.manager'
and
replaced `entity.manager`
to `entity_type.manager`
3. created a patch
git diff > D9patch.patch
## drush
cleared cache and installed the commerce_autosku module
drush cr && drush en commerce_autosku
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | patch-for-d9-3150280--5.patch | 2.19 KB | scalas89 |
Issue fork commerce_autosku-3150280
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 #2
acnimda commentedComment #3
acnimda commentedComment #4
k.skarlatos commentedPatch does not apply on latest dev
Comment #5
scalas89 commentedComment #6
nwom commented#5 works great. Thank you!
Comment #7
nwom commentedComment #9
pcambra+1 to RTBC
Comment #11
jsacksick commentedRemoved the "core" key which is incompatible with the "core_version_requirement", made additional coding standard fixes and committed.
Comment #12
devad commentedThank you for commit.
A new release would be nice.
#3236502: Plan for Commerce AutoSKU 8.x-2.0
Comment #14
sivaji_ganesh_jojodae commentedThis module is now available on drupalcode.org for both D8 & D9. See https://git.drupalcode.org/project/commerce_autosku branch 8.x-2.x.
Comment #15
devad commentedThank you for info @Sivaji_Ganesh_Jojodae. But, why on drupalcode.org?
Is there some obstacle to commit changes here and release d9 compatible release here at drupal.org?
Comment #16
nwom commented@devad drupalcode.org is the same thing as drupal.org. On the project page, if you click on "View All releases" you'll see the latest dev version. They aren't committing the changes in a separate place. The reason why it is no longer shown is because it was never marked as compatible with D9, since D8 is already end-of-life.
However, the question is what is stopping from it being shown on the project page itself as a D9 release. I think the maintainer should mark it as compatible, so that others can see it, even if it is still in beta.