Create a value object for the return of ComponentTreeHydrated::getValue

Created on 16 December 2024, 3 days ago

Overview

A lot of code is calling ::getValue on \Drupal\experience_builder\Plugin\DataType\ComponentTreeHydrated and then calling json_decode on the content.
In some cases we call this multiple times (see buildLayout in ApiLayoutController)

Proposed resolution

Introduce a value object that keeps the unencoded hydrated tree and cacheability metadata. Access the unencoded values instead of calling json_decode so much

User interface changes

πŸ“Œ Task
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