Remove the LogicException in ComponentTreeLoader that forces XB to only work with article nodes

Created on 31 July 2025, 29 days ago

Overview

The first thing in \Drupal\experience_builder\Storage\ComponentTreeLoader::getXbFieldName() is a LogicException that is thrown if you try to use XB on anything except an article node.

This is not going to work for Drupal CMS. Although we do not need any ability to use XB to edit individual nodes right now -- nor do we need the ability to edit content templates in the UI -- we do need the ability to render any entity type through an existing content template (which will we hand-craft). The LogicException is a brick wall preventing that.

This blocks site templates, and therefore the full adoption of XB by Drupal CMS 2.x.

Proposed resolution

Fully remove the exception.

User interface changes

None.

πŸ“Œ Task
Status

Active

Version

1.0

Component

… to be triaged

Created by

πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts

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

Comments & Activities

Production build 0.71.5 2024