/** * {@inheritdoc} * * @param \Drupal\Core\Routing\CurrentRouteMatch $route_match * The current route match service. */ public function __construct(MenuTreeStorageInterface $tree_storage, MenuLinkManagerInterface $menu_link_manager, RouteProviderInterface $route_provider, MenuActiveTrailInterface $menu_active_trail, ControllerResolverInterface $controller_resolver, CurrentRouteMatch $route_match) { parent::__construct($tree_storage, $menu_link_manager, $route_provider, $menu_active_trail, $controller_resolver); $this->routeMatch = $route_match; }