Problem/Motivation
While working on #3519934: Add ui_patterns_field_widgets sub-module, we noticed there is an issue with the Drupal 12 upgrade (and the move from Symfony 7 to Symfony 8.0).
See this commit: https://git.drupalcode.org/project/ui_patterns/-/merge_requests/372/diff...
Proposed resolution
- Change the way we are constructing constraints
- Change all info.yml to declare Drupal 12 compatibility.
Is it a breaking change? Is it preventing us to support both Drupal 11 and Drupal 12? Do we need to move to UI PAtterns 3?
Issue fork ui_patterns-3588936
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
grimreaperFrom Core 11.4.0: https://www.drupal.org/node/3555534 / https://git.drupalcode.org/project/drupal/-/commit/2f82880037313b2948a59...
From Core 12.0.0 : https://www.drupal.org/node/3569092 / https://git.drupalcode.org/project/drupal/-/commit/aea47fe1b2bf794554898...
So I think if we increase core requirements to 11.4.0 it will be ok.
Comment #3
grimreaperComment #4
grimreaperUpgrade to Symfony 7.4 happened in https://www.drupal.org/project/drupal/issues/3555526
Commit: https://git.drupalcode.org/project/drupal/-/commit/2f82880037313b2948a59...
Present In Core 11.4.0
Comment #5
grimreaperhttps://www.drupal.org/node/3379306
Comment #7
grimreaperWIP MR created.
I have not tested.
The main point to clarify is in src/Plugin/Context/RequirementsContextDefinition.php, I left a todo, when I encountered the problem on D12 I was not passing in this class so not sure about this change.
Comment #8
grimreaperComment #10
grimreaper