- Issue created by @pdureau
- Assigned to Christian.wiedemann
- π©πͺGermany Christian.wiedemann
christian.wiedemann β made their first commit to this issueβs fork.
- Merge request !189Use decorator instead overwriting the component plugin service β (Open) created by Christian.wiedemann
- π©πͺGermany Christian.wiedemann
I decorated plugin.manager.sdc instead of overwriting and I updated the layout builder deriver to use the original service.
- Status changed to Needs review
3 months ago 9:59pm 28 August 2024 - Assigned to pdureau
- Assigned to Christian.wiedemann
- Status changed to Needs work
3 months ago 9:48am 29 August 2024 - π«π·France pdureau Paris
Pipeline issues
phpstan:
Line modules/ui_patterns_devel/tests/src/Kernel/TwigValidatorTestBase.php
39 Property
Drupal\Tests\ui_patterns_devel\Kernel\TwigValidatorTestBase::$componentPluginManager
(Drupal\ui_patterns\ComponentPluginManager) does not accept
Drupal\Core\Theme\ComponentPluginManager.
------ --------------------------------------------------------------------------------------
Line modules/ui_patterns_devel/tests/src/Kernel/ValidatorTest.php
46 Property
Drupal\Tests\ui_patterns_devel\Kernel\ValidatorTest::$componentPluginManager
(Drupal\ui_patterns\ComponentPluginManager) does not accept
Drupal\Core\Theme\ComponentPluginManager.
------ ------------------------------------------------------------------------------
Line modules/ui_patterns_field_formatters/src/Plugin/Field/FieldFormatter/ComponentFormatterBase.php
65 Property
Drupal\ui_patterns_field_formatters\Plugin\Field\FieldFormatter\ComponentFormatterBase::$componentPluginManager
(Drupal\ui_patterns\ComponentPluginManager) does not accept
Drupal\Core\Theme\ComponentPluginManager.
------ -----------------------------------------------------------------------
Line modules/ui_patterns_layouts/src/Plugin/Derivative/ComponentLayout.php
41 Call to an undefined method
Drupal\Core\Theme\ComponentPluginManager::getSortedDefinitions().
------ ---------------------------------------
Line src/ComponentPluginManager.php
14 Plugin definitions cannot be altered.
------ ---------------------------------------
Line src/Element/ComponentForm.php
172 Call to an undefined method
Drupal\Core\Theme\ComponentPluginManager::getGroupedDefinitions().
------ ----------------------------------------------------------------------
Line tests/src/Kernel/ComponentPluginManagerTest.php
43 Property
Drupal\Tests\ui_patterns\Kernel\ComponentPluginManagerTest::$manager
(Drupal\ui_patterns\ComponentPluginManager) does not accept
Drupal\Core\Theme\ComponentPluginManager.Maybe more.
Tests without experience builder
After switching to the branch, I got:
Uncaught PHP Exception Error: "Typed property Drupal\ui_patterns\ComponentPluginManager::$propTypePluginManager must not be accessed before initialization" at /home/pierre/Projects/Drupal/ui_patterns_2/web/modules/custom/ui_patterns/src/ComponentPluginManager.php line 59
A fresh install fixed this. Do we really need to do such a fresh install?
Everything seems fine: summary is created, props are typed...
Test 1 with Experience Builder
commit 938ca03cce282bdc79da802efd0d3850751994d3 (HEAD -> 0.x, origin/HEAD, origin/0.x)
Date: Thu Aug 22 18:34:17 2024 +0000UI Patterns 2 with experience builder components
/patterns/experience_builder shows the Experience Builder's SDC component β
Except the resolution of
"$ref":"json-schema-definitions://
but tit seems the stream wrapper is not ready at the XB sideComponent "Shoe button" can be used with ComponentBlock β
Experience builder with the UI Patterns 2 component
This warning:
PHP Warning: Undefined array key "props" in experience_builder/src/Plugin/ComponentPluginManager.php on line 58
And a fatal error on /xb/node/1:
An unexpected error has occurred while fetching layouts. SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
So, not possible to test more.
Test 2 with Experience Builder
After a git pull, npm i & nom run build:
commit 7cb3623d22582ba7eae4dfb551a402c7d5a1c45c (HEAD -> 0.x, origin/HEAD, origin/0.x)
Date: Wed Aug 28 15:26:32 2024 +0000I have this fatal:
Drupal\experience_builder\PropShape::resolveSchemaReferences(): Argument #1 ($schema) must be of type array, string given
A fresh Drupal reinstall is not fixing it. So, not possible to test more.
- π«π·France pdureau Paris
Moved to beta3 because:
- There is many active and breaking changes currently nExperience builder
- We may need to push a fix in Core before anyway
- Status changed to Postponed
about 2 months ago 8:11am 18 September 2024 - π«π·France pdureau Paris
Let's do β¨ ComponentPluginManager must implement CategorizingPluginManagerInterface Active first