Prevent the deletion of a bundle entity if there are existing content entities of that bundle

Created on 25 January 2015, over 9 years ago
Updated 23 February 2024, 4 months ago

Problem/Motivation

Check the issue title ;)

Proposed resolution

Override the preDelete() method in ConfigEntityBundleBase and throw an exception when there are existing content entities using the bundle that is about to be deleted.

Remaining tasks

Review.

User interface changes

Nope.

API changes

Deleting config entities that act as bundles for content entities is now prevented on the API level when there is existing data for those bundles.

πŸ“Œ Task
Status

Needs work

Version

11.0 πŸ”₯

Component
EntityΒ  β†’

Last updated about 1 hour ago

Created by

πŸ‡«πŸ‡·France andypost

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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.69.0 2024