- 🇬🇷Greece perarg
Based on Jons comment #2, I created a patch. I think that the code needs a small fix so I've done it, too.
if (!empty($plugin_definition)) { $this->provider = $this->pluginDefinition['provider']; } if (!empty($configuration)) { $this->setConfiguration($configuration); }
- 🇮🇹Italy apaderno Brescia, 🇮🇹
Plugin instances are not created by directly calling the constructor of the plugin class. If a module does that, that is a bug in that module, not in this module.
None of the classes that extends
PluginBase
verifies $this->pluginDefinition is not empty because plugins always have a plugin definition.