EntityResolverManager::__construct

public EntityResolverManager::__construct(EntityManagerInterface $entity_manager, ClassResolverInterface $class_resolver)

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 38

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;
}
doc_Drupal
2016-10-29 09:07:28
Comments
Leave a Comment

Please login to continue.