ComponentTreeHydrated prevents serialization

Created on 3 April 2025, 4 days ago

Overview

\Drupal\experience_builder\Plugin\DataType\ComponentTreeHydrated::getValue returns an instance of \Drupal\experience_builder\HydratedTree

When jsonapi or the serialization module are enabled, attempting to normalize an entity with a component tree item causes a fatal error because the default normalizer for typed data in core (\Drupal\serialization\Normalizer\TypedDataNormalizer::doNormalize) has this return type array|string|int|float|bool|\ArrayObject|NULL and HydratedTree is none of these.

Proposed resolution

Either:

User interface changes

πŸ› Bug report
Status

Active

Version

0.0

Component

Data model

Created by

πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024