Updated: Comment #N
We added ways store the provider for all views handlers and plugins. This is good for the likes of, as we can use the providers to help build dependencies. However, there is a missing piece; Handlers such as the "field" field handler (confusing, yes) provided by the field module (Drupal\field\Plugin\views\field\Field) will have a provider of 'field' as the field module has provided the plugin. The selected field could then use something like image, for example. So there is actually a dependency on field and image modules. Currently, we have no way of determining this.
1. Rely on having the plugin instances available (
2. Add a new mechanism when plugins/handlers are added to a view that call something similar to above to get these optional additoinal dependencies, and add that to the configuration for that plugin/handler. Similar to when we add the provider key for example.
User interface changes
Could break some older default views, needing an update to these additional dependencies...
PASSED: [[SimpleTest]]: [PHP 5.4 MySQL] 68,050 pass(es). View
PASSED: [[SimpleTest]]: [PHP 5.4 MySQL] 68,070 pass(es). View