public function EntityRouteAlterSubscriber::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/EventSubscriber/EntityRouteAlterSubscriber.php \Drupal\Core\EventSubscriber\EntityRouteAlterSubscriber::__construct()
Constructs an EntityRouteAlterSubscriber instance.
Parameters
\Drupal\Core\Entity\EntityResolverManager: The entity resolver manager.
File
- core/
lib/ Drupal/ Core/ EventSubscriber/ EntityRouteAlterSubscriber.php, line 41 - Contains \Drupal\Core\EventSubscriber\EntityRouteAlterSubscriber.
Class
- EntityRouteAlterSubscriber
- Registers the 'type' of route parameter names that match an entity type.
Namespace
Drupal\Core\EventSubscriberCode
public function __construct(EntityResolverManager $entity_resolver_manager) {
$this->resolverManager = $entity_resolver_manager;
}