Comment type entity should declare dependency on extension of the target entity type

Created on 4 February 2017, almost 8 years ago
Updated 11 September 2023, about 1 year ago

Problem/Motivation

The comment.type.comment.yml config which is shipped with the standard profile has an undeclared dependency on its target entity type..

How to reproduce

  1. Install Drupal with the Standard profile.
  2. Head over to /admin/modules/uninstall.
  3. Uninstall the History and Taxonomy modules.
  4. Uninstall the Node module.
  5. Visit /admin/structure/comment/manage/comment/delete.

You should see PluginNotFoundException: Drupal\Component\Plugin\Exception\PluginNotFoundException: The "node" entity type does not exist. in Drupal\Core\Entity\EntityTypeManager->getDefinition()

Proposed resolution

Add dependencies from the comment field and the target entity type.

Remaining tasks

  1. Update tests
  2. Patch.

User interface changes

User is expected to see dependency information when attempting to delete.

API changes

Nil

Data model changes

Nil

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component
Comment 

Last updated 2 days ago

Created by

🇺🇸United States shadcn

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

    The patch will have to be re-rolled with new suggestions/changes described in the comments in the issue.

Sign in to follow issues

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