Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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!