Problem/Motivation
Fix Drupal >=9.2 deprecations in the module, which will lead module one step closer to Drupal 10 readiness.
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | ctools-d10-3272682-10.patch | 17.55 KB | berdir |
| #10 | ctools-d10-3272682-10.patch | 19.92 KB | berdir |
Issue fork ctools-3272682
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
japerryWe may want to use the Drupal event subscriber proxy instead of the direct symfony one. I'm also worried about page manager support here, since it wouldn't be compatible with this version of ctools.
If we can keep it D8.9 compatible lets try for that first.
Comment #4
berdirReviewed a bit. I don't think 8.9 compatibility is possible nor necessary, it's impossible to test against D8 now. Agree with the event class use. I think then it would still work with page manager?
Comment #5
berdirTests fail on D10 due to the the required setUp() change and I guess also $modules definition if that wasn't already changed elsewhere.
Comment #6
berdirAlso, looks this overlapped with #3259348: Remove Drupal 8 compatibility in info.yml, which (IMHO unnecessarily) made the D8 change already, so that's off the table already anyway and this will need a rebase.
Comment #7
berdirAh, I see why I was confused, there is a new 4.x branch that contains those changes. I guess 8.x-3.x should not be changed at all then.
Comment #8
berdirDon't forget to update the issue when working on a MR as it does not send out notifications.
That said, this is still against 8.x-3.x, and I assume needs to be redone against 4.x instead, which is already defined as D10 compatible.
Comment #9
berdirLooking into this as it's blocking pathauto.
Comment #10
berdirSwitching to a patch because I can't force push that branch or change the branch target. There were a number of tricky bits in there that static analysis does not cover, I'll post a self-review to explain them.
I also included #3191286: Signature of EventDispatcherInterface::dispatch() has changed, with this, all tests pass against D10 without deprecations (various things have not actually been removed yet) for me locally.
Comment #11
berdirPatch against wrong branch, ignore that.
Comment #12
berdirincreased the min version to 9.1, many things require that, not 9.0 (context changes, event changes, ..)
The serializable tempstore factory + service + SerializableTempstore did exactly one thing. Add DependencySerializationTrait to SharedTempStore. That has been in core since Drupal 8.7.
The reason I removed it is because the unit test makes the Request object implement Serializable, which is deprecated in PHP 8.1.
The factory is also broken on D9.3+ I think because it uses old session handling which no longer works.
I could find no usage of that service in the module, and as a major new version, I think it's fine to remove that?
We could also just remove the test, but I don't really see any points in keeping this stuff.
this is quite weird, but it seems to be backwards compatible. D10 without it is a fatal error.
Symfony\Cmf is removed in D10. This is the specific change I need for pathauto.
Comment #13
berdirIf you do commit this, don't forget to grant issue credits to people who worked on the other issue.
Comment #14
japerryWith this, we'll up the version to 9.2 (from 9.1), and backport some of the 3.x changes to 4.x. Once we get this pushed into 4.x, 3.x will become maintanence patches only, with defaults going into 4.x
Basically 8.x-3.x is for Drupal 8 and early versions of Drupal 9, and 4.x is for D9 (9.2+) and D10.
Comment #16
japerryFixed! Committed to 4.x
Comment #18
kristen polTagging so easier to find. Thanks everyone!