Problem/Motivation
May plugin types do not have any configuration, but \Drupal\Component\Plugin\Factory\FactoryInterface::createInstance() does require it to be passed on.
Proposed resolution
Fix this by defaulting to an empty array. \Drupal\Component\Plugin\PluginManagerBase::createInstance() already does this, which is the base for most, if not all, plugin managers in core.
Remaining tasks
None.
User interface changes
None.
API changes
No BC breaks.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | drupal_2175569_3.patch | 5.82 KB | xano |
Comments
Comment #1
xanoComment #3
xanoComment #4
xano3: drupal_2175569_3.patch queued for re-testing.
Comment #5
ianthomas_ukSounds reasonable to me, and you've updated all implementing classes that I could find.
Comment #6
alexpottI'd noticed this before. makes sense.
Committed f718eda and pushed to 8.x. Thanks!