ECK entities do not support resolving entity type/bundle from the class name in Drupal\eck\Entity\EckEntity

Created on 7 January 2022, almost 3 years ago
Updated 5 April 2024, 9 months ago

Problem/Motivation

In Drupal 9.3.0, entity bundle classes were introduced. Together with that, ContentEntityBase::create was updated, but these changes have not yet been reflected in Drupal\eck\Entity\EckEntity::create. Because of this, the create method does not behave the same way as with regular content entities.

Steps to reproduce

Call EckEntity::create on a bundle subclass. You will get the following error:

The "" entity type does not exist

Proposed resolution

Update Drupal\eck\Entity\EckEntity::create with the new logic, maintaining backwards compatibility.

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇧🇪Belgium dieterholvoet Brussels

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024