Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293850

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

$
0
0

Problem/Motivation

The comment.type.comment.yml config which is shipped with the standard profile has an undeclared dependency on node.module.

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 a dependency on the node module

Remaining tasks

  1. Write test to confirm bug.
  2. Patch.

User interface changes

API changes

Data model changes


Viewing all articles
Browse latest Browse all 293850