In a preprocess function I want to access the destination node id via the URL object
I cannot find any method that will return the node id for me but I can clearly see that it holds the node id. (see attached)
Any idea how I can get the node id without going the long way of generating it from the URL path?