function EntityRouteHelper::__construct

Same name and namespace in other branches
  1. 11.x core/modules/navigation/src/EntityRouteHelper.php \Drupal\navigation\EntityRouteHelper::__construct()

File

core/modules/navigation/src/EntityRouteHelper.php, line 31

Class

EntityRouteHelper
Helper service to detect entity routes.

Namespace

Drupal\navigation

Code

public function __construct(#[Autowire(service: 'current_route_match')] protected CurrentRouteMatch $routeMatch, protected EntityTypeManagerInterface $entityTypeManager, #[Autowire(service: 'cache.discovery')] protected CacheBackendInterface $cacheBackend) {
}

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