Drupal 8 Link Render Array
$url = Url::fromRoute('entity.node.edit_form', array('node' => NID));
$link = [
'#type' => 'link',
'#url' => $url,
'#title' => t('This link was rendered')
];
Gleaming Gannet