public function 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\EventSubscriberCode
public function __construct(EntityManagerInterface $entity_manager) { $this->entityManager = $entity_manager; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!EventSubscriber!EntityRouteProviderSubscriber.php/function/EntityRouteProviderSubscriber::__construct/8.1.x