public function EntityResolverManager::__construct in Drupal 9
Same name and namespace in other branches
- 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\EntityCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, ClassResolverInterface $class_resolver) {
$this->entityTypeManager = $entity_type_manager;
$this->classResolver = $class_resolver;
}