diff --git a/core/lib/Drupal/Core/Entity/EntityTypeManagerInterface.php b/core/lib/Drupal/Core/Entity/EntityTypeManagerInterface.php index c4fce4e..6f78c88 100644 --- a/core/lib/Drupal/Core/Entity/EntityTypeManagerInterface.php +++ b/core/lib/Drupal/Core/Entity/EntityTypeManagerInterface.php @@ -93,7 +93,12 @@ public function getRouteProviders($entity_type); public function hasHandler($entity_type, $handler_type); /** - * Creates a new handler instance for a entity type and handler type. + * Gets a handler instance for the handler and entity type. + * + * Handlers are created and cached per entity type, + * so what might happen if you expect it to per entity. If a handler + * instance is not already instantiated for the entity type, + * a new one will be created and returned. * * @param string $entity_type * The entity type for this handler.