Problem/Motivation
2 bugs found during beta5 tests
1 A little typing error which can be fixed by this:
++ b/src/Element/ComponentElementAlter.php
@@ -56,7 +56,7 @@ class ComponentElementAlter implements TrustedCallbackInterface {
// Because SDC validator is sometimes confused by an empty slot.
// We check the current slot render element.
- if (self::isSlotEmpty($slot)) {
+ if (is_array($slot) && self::isSlotEmpty($slot)) {
self::mergeSlotBubbleableMetadata($element, $slot, 1);
unset($element['#slots'][$slot_id]);
continue;
2. A fatal error I didn't find any solution yet:
Error: Typed property Drupal\Core\Plugin\DefaultPluginManager::$moduleExtensionList must not be accessed before initialization in Drupal\ui_patterns\ComponentPluginManager->getExtensionLabel() (line 360 of modules/custom/ui_patterns/src/ComponentPluginManager.php).
They may be related to your MR of yesterday. Can you have a look?
Issue fork ui_patterns-3490599
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
pdureau commentedComment #5
christian.wiedemann commentedComment #7
pdureau commentedComment #8
pdureau commentedComment #9
christian.wiedemann commented