code: protected function getRouteIdentifier(Route $route) : string
      {
          return empty($route->getName()) ? $route->getTarget() : $route->getName();
      }
docs: Returns the identifier string for given route.
  
  @param Route $route
  @return string