Entities exist of type "Entity type" and "Bundle label" could be more helpful

Created on 10 March 2025, 23 days ago

When importing config that would affect existing entities, the message:

Entities exist of type <em>Paragraph</em> and <em>Paragraph type</em> <em>Listing</em>. These entities need to be deleted before importing.

could be more helpful in providing the machine name of the entity bundle in the message. This would provide the site maintainer with a simply reminder of the bundle name so they could easily delete the entities of that bundle type without having to manually look it up. In some/many cases the bundle label doesn't match the bundle machine name.

I would propose:

Entities exist of type <em>Entity type label</em> and <em>Bundle type</em> <em>Bundle label (bundle_name)</em>. These entities need to be deleted before importing.

which would look as follows using the example above:

Entities exist of type <em>Paragraph</em> and <em>Paragraph type</em> <em>Listing (paragraph_listing)</em>. These entities need to be deleted before importing.

The site maintainer could simple run

drush entity:delete paragraph --bundle=paragraph_listing if necessary.

I'll provide a merge request for this but interested in what other people think?

✨ Feature request
Status

Active

Version

10.0 ✨

Component

entity system

Created by

πŸ‡¬πŸ‡§United Kingdom welly

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024