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.
This is a follow up of #1938030: Replace View's usage of drupal_container->get() with Drupal::service()
We have both the view factory and all the plugin managers in the DIC, so we could in theory inject all plugin managers into the executable.
Sadly we have the problem with serializing of the ViewExecutable again.
Comments
Comment #1
dawehnerComment #14
smustgrave CreditAttribution: smustgrave at Mobomo commentedThe issue in the summary was closed already. So after 11+ years is this still a valid task for views?
Comment #15
dimitriskr CreditAttribution: dimitriskr commentedI've injected the plugin managers to DisplayPluginBase, in the related issue, so I think if doing #2015121: Inject various dependencies into DisplayPluginBase, this must be done too.
Luckily it requires only 2 plugin managers, so it should be quick :)
Comment #17
dimitriskr CreditAttribution: dimitriskr commented