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

ComponentPluginManager should detect if an extension provides two different components that resolve to the same plugin ID

$
0
0

Problem/Motivation

  1. I write a module.
  2. I add components/image.component.yml
  3. Months later, I add many components, and I add component/simple/image.component.yml
  4. On some environments, this crashes, on others it does not.

Steps to reproduce

See above.

Proposed resolution

Detect the duplicate plugin ID within an extension, and throw a helpful exception.

Remaining tasks

  • Explicit test coverage. (I suggest following the pattern that \Drupal\Tests\ckeditor5\Kernel\CKEditor5PluginManagerTest::testInvalidPluginDefinitions() established.)
  • Fix.

User interface changes

None.

Introduced terminology

None.

API changes

None.

Data model changes

None.

Release notes snippet

N/A


Viewing all articles
Browse latest Browse all 293926

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>