EntityRouteProviderSubscriber::__construct

public EntityRouteProviderSubscriber::__construct(EntityManagerInterface $entity_manager)

Constructs a new EntityRouteProviderSubscriber instance.

Parameters

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

File

core/lib/Drupal/Core/EventSubscriber/EntityRouteProviderSubscriber.php, line 29

Class

EntityRouteProviderSubscriber
Ensures that routes can be provided by entity types.

Namespace

Drupal\Core\EventSubscriber

Code

public function __construct(EntityManagerInterface $entity_manager) {
  $this->entityManager = $entity_manager;
}
doc_Drupal
2016-10-29 09:07:34
Comments
Leave a Comment

Please login to continue.