function EntityRouteAlterSubscriber::__construct

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/EventSubscriber/EntityRouteAlterSubscriber.php \Drupal\Core\EventSubscriber\EntityRouteAlterSubscriber::__construct()
  2. 10 core/lib/Drupal/Core/EventSubscriber/EntityRouteAlterSubscriber.php \Drupal\Core\EventSubscriber\EntityRouteAlterSubscriber::__construct()
  3. 9 core/lib/Drupal/Core/EventSubscriber/EntityRouteAlterSubscriber.php \Drupal\Core\EventSubscriber\EntityRouteAlterSubscriber::__construct()
  4. 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\EventSubscriber

Code

public function __construct(protected EntityResolverManager $resolverManager) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.