Allow to ClientDataToEntityConverter to handle ComponentTreeEntityInterface entities

Created on 26 August 2025, 2 days ago

Overview

In πŸ“Œ Refactor ApiLayoutController into 2 sub-class to support Content Templates Active we started update ClientDataToEntityConverter to handle not only fieldable entities but also content template. It turns all we needed was to use ClientServerConversionTrait directly in the case we are dealing with ContentTemplate entities.

So decided to create this issue to update ClientDataToEntityConverter because along with that the test coverage ClientDataToEntityConverterTest should also be updated.

Proposed resolution

Allow \Drupal\experience_builder\ClientDataToEntityConverter::convert to update ContentTemplate entities and possibly other ComponentTreeEntityInterface entities. Update \Drupal\experience_builder\Controller\ApiLayoutController::buildPreviewRenderable to not use `\Drupal\experience_builder\Controller\ClientServerConversionTrait::convertClientToServer` directly

User interface changes

πŸ“Œ Task
Status

Active

Version

1.0

Component

… to be triaged

Created by

πŸ‡ΊπŸ‡ΈUnited States tedbow Ithaca, NY, USA

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

Comments & Activities

Production build 0.71.5 2024