fix: #3623504 Re-point the Canvas component plugin manager alias to the decorated service
Fixes https://www.drupal.org/project/ui_patterns/issues/3623504
Canvas sets the class of plugin.manager.sdc to its own ComponentPluginManager and aliases Drupal\canvas\Plugin\ComponentPluginManager to that service. UI Patterns decorates plugin.manager.sdc and stays outermost (decoration_priority -100), so that alias resolves to the UI Patterns manager and every Canvas method typed against its own class throws a TypeError. It is thrown from the Canvas recipe event subscriber, so every recipe apply fails on a site with both modules.
This adds a compiler pass, registered from UiPatternsServiceProvider only when the canvas module is present, that re-points that alias to Drupal\ui_patterns\ComponentPluginManager.inner, the Canvas classed manager UI Patterns already decorates, and makes it public. plugin.manager.sdc stays the UI Patterns manager.
AI-Generated: Yes