PluginSelectionForm calls Drupal::service('plugin.manager.xbbcode') to get at the plugin manager. Since forms can use injection, the proper way to do this would be to override create(ContainerInterface $container) and get the plugin manager from that.

Comments

cburschka created an issue. See original summary.

cburschka’s picture

Status: Active » Needs review
StatusFileSize
new2.63 KB

  • cburschka committed 425cc17 on 8.x-3.x
    Issue #2810703: Use dep-injection in plugin form.
    
    Replace a Drupal::...
cburschka’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.