Problem/Motivation
- I write a module.
- I add
components/image.component.yml
- Months later, I add many components, and I add
component/simple/image.component.yml
- 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