How to load a node given a menu link id? I have this id via $link-&gt;getParent():

menu_link_content:6cf83fce-228f-42da-bc39-bea06c767510


How do I get the node id of that menu link?
Something like:

if ('entity.node.canonical' == $link-&gt;getRouteName()) {
  $params = $link-&gt;getRouteParameters();
  $nid = $params['node'];
}