You are here

public function EntityResolverManager::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/EntityResolverManager.php \Drupal\Core\Entity\EntityResolverManager::__construct()

Constructs a new EntityRouteAlterSubscriber.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.

\Drupal\Core\DependencyInjection\ClassResolverInterface $class_resolver: The class resolver.

File

core/lib/Drupal/Core/Entity/EntityResolverManager.php, line 39

Class

EntityResolverManager
Sets the entity route parameter converter options automatically.

Namespace

Drupal\Core\Entity

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, ClassResolverInterface $class_resolver) {
  $this->entityTypeManager = $entity_type_manager;
  $this->classResolver = $class_resolver;
}