Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291765

Decide what methods should be added for plugin managers to \Drupal

$
0
0

Follow-up to #1937600: Determine what services to register in the new Drupal class

We need to decide what we want to do with plugin managers, some of them are quite frequently accessed.

My suggestion:

1. Enforce the naming pattern that afaik all or most are already using, which is plugin.manager.$something
2. Add a Drupal::pluginManager($something)
3. For those that are accessed very frequently and provide custom methods, e.g. entityManager(), add a specific method so that we have type hints for the additional methods.


Viewing all articles
Browse latest Browse all 291765

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>