function EntityRouteAlterSubscriber::__construct
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/EventSubscriber/EntityRouteAlterSubscriber.php \Drupal\Core\EventSubscriber\EntityRouteAlterSubscriber::__construct()
- 10 core/lib/Drupal/Core/EventSubscriber/EntityRouteAlterSubscriber.php \Drupal\Core\EventSubscriber\EntityRouteAlterSubscriber::__construct()
- 9 core/lib/Drupal/Core/EventSubscriber/EntityRouteAlterSubscriber.php \Drupal\Core\EventSubscriber\EntityRouteAlterSubscriber::__construct()
- 8.9.x core/lib/Drupal/Core/EventSubscriber/EntityRouteAlterSubscriber.php \Drupal\Core\EventSubscriber\EntityRouteAlterSubscriber::__construct()
Constructs an EntityRouteAlterSubscriber instance.
Parameters
\Drupal\Core\Entity\EntityResolverManager $resolverManager: The entity resolver manager.
File
-
core/
lib/ Drupal/ Core/ EventSubscriber/ EntityRouteAlterSubscriber.php, line 29
Class
- EntityRouteAlterSubscriber
- Registers the 'type' of route parameter names that match an entity type.
Namespace
Drupal\Core\EventSubscriberCode
public function __construct(protected EntityResolverManager $resolverManager) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.