You are here

public function EntityResolverManager::__construct in Zircon Profile 8

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

Constructs a new EntityRouteAlterSubscriber.

Parameters

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.

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

File

core/lib/Drupal/Core/Entity/EntityResolverManager.php, line 43
Contains \Drupal\Core\Entity\EntityResolverManager.

Class

EntityResolverManager
Sets the entity route parameter converter options automatically.

Namespace

Drupal\Core\Entity

Code

public function __construct(EntityManagerInterface $entity_manager, ClassResolverInterface $class_resolver) {
  $this->entityManager = $entity_manager;
  $this->classResolver = $class_resolver;
}