I just noticed a bug in our plugin dependency removal logic, caused by inconsistent data coming from Core: it seems the inner arrays in $dependencies in onDependencyRemoval() will be keyed (as currently expected in our code) by config name for config/content entities, but they will just be plain, numerically indexed arrays in the case of modules and themes. Since we're currently not testing that case, it slipped through the cracks, and it's of course a bit stupid behavior by Core.

Anyways, once discovered, it's luckily easy to fix.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

drunken monkey created an issue. See original summary.

borisson_’s picture

Status: Needs review » Reviewed & tested by the community
drunken monkey’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for reviewing!
Committed.

  • drunken monkey committed 365f6a7 on 8.x-1.x
    Issue #2645532 by drunken monkey: Fixed index plugin dependency removal...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.