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.
Good morning!
I briefly discussed this with neclimdul and EclipseGc on IRC yesterday... Currently we are registering plugin managers with the DIC which might use derivative discovery - In order to retrieve a list of existing entity types in a plugin deriver we would now have to use entity_get_info() or (in the future) drupal_container()->get('plugin.manager.entity'). I would very much prefer to inject stuff into my plugin derivers directly. Does it make sense to add a discovery decorator to \Core which would refer to plugin derivers as service ids instead of FQCNs?
Comment | File | Size | Author |
---|---|---|---|
service-derivative-discovery.patch | 10.6 KB | fubhy | |
Comments
Comment #3
damiankloip CreditAttribution: damiankloip commentedSo this would replace ContainerDerivativeDiscoveryDecorator?
Comment #4
dawehnerI doubt we really need this at the point, but sure both solutions would work.
Comment #5
damiankloip CreditAttribution: damiankloip commentedYeah. What he said.
Comment #6
dawehnerSo