Creating a link from node ID in Drupal 8
<p>I am checking out Drupal 8 and try to generate a link based on the node ID of an article. 
In Drupal 7 it is something like:</p>

<pre><code>$options = array('absolute' =&gt; TRUE);
$nid = 1; // Node ID
$url = url('node/' . $nid, $options);
</code></pre>

<p>This results into an absolute link with the correct url-alias.</p>

<p>So the url()-function seems to be deprecated; what is the Drupal-8 way?
Looks like a really basic function for me but I could not find any useful references.</p>