Not working with drupal 10

Created on 7 March 2023, almost 2 years ago
Updated 3 April 2023, over 1 year ago

Hello,
the drupal module page indicates the version 2.0-rc2 is compatible with drupal 10 but it is not true, even the 2.x-dev does not work with drupal 10.
First we cannot install it with composer because of the dependency on layout_builder_browser which has no version for drupal 10.

Then if I simply copy the code from 2.x-dev or 2.0-rc2, the submodule wingsuit_ui_patterns has quite some problems with drupal 10:

The wingsuit_ui_patterns.services.yml file needs a 5th argument for the Twig Extension on line 3:

arguments: ['@renderer', '@url_generator', '@theme.manager', '@date.formatter', '@file_url_generator']

There is another bug with the "app.root" parameter on files Plugin/Deriver/LibraryDeriver.php and Plugin/UiPatterns/Pattern/LibraryPattern.php which I resolved by changing this:
$container->get('app.root')
to this:
$container->getParameter('app.root')

Finally I did have a bug on StreamWrapper/WingsuitStreamWrapper.php which was resolved by replacing the RequestStack import:
use Symfony\Component\HttpFoundation\RequestStack;

I hope it helps.

🐛 Bug report
Status

Fixed

Component

Code

Created by

🇫🇷France Nicolas Ebiz

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024