Entities that use a plugin for bundles cause WSOD

Created on 3 August 2023, 11 months ago
Updated 26 October 2023, 8 months ago

Problem/Motivation

If an entity implements bundle support using a plugin handler, rather than using entity storage, multiple places in the code generate a WSOD.

Steps to reproduce

In my use case, I'm working on upgrading gcommerce to support 2.x and 3.x of group. The commerce_license module implemented bundles using plugins.

When you attempt add new or existing entities to the group, you get a WSOD.

Similarly, if you access the groupOperations, e.g. by adding the group block to the block layout and visit a page with that block, you also encounter issues.

Proposed resolution

The entity type bundle info service abstracts this out, allowing support for both storage and plugin based bundles.

Remaining tasks

Patch to follow.

User interface changes

The current group operations dropdown button only displays the bundle name, rather than entity type of bundle name. The patch will address that, as well.

πŸ› Bug report
Status

Needs review

Version

3.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States TomTech

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

Comments & Activities

Production build 0.69.0 2024