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

@param Route $route
@return string