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

inaccurate description for EntityTypeManager::getHandler()

$
0
0

API page: https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityType...

> Creates a new handler instance for a entity type and handler type.

That's not true. It caches the instantiated handlers and only creates one if needed.

Rather than say 'creates', the documentation should explicitly state that handlers are per entity type, not per entity.

This is so developers know that they may statically cache something in handler, but also to ensure the cache is per entity if necessary.


Viewing all articles
Browse latest Browse all 299019

Latest Images

Trending Articles



Latest Images

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